diff options
Diffstat (limited to 'Godeps/_workspace/src/github.com/robertkrimen/otto/builtin_array.go')
-rw-r--r-- | Godeps/_workspace/src/github.com/robertkrimen/otto/builtin_array.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Godeps/_workspace/src/github.com/robertkrimen/otto/builtin_array.go b/Godeps/_workspace/src/github.com/robertkrimen/otto/builtin_array.go index 44bf88569..160a251c6 100644 --- a/Godeps/_workspace/src/github.com/robertkrimen/otto/builtin_array.go +++ b/Godeps/_workspace/src/github.com/robertkrimen/otto/builtin_array.go @@ -420,7 +420,7 @@ func arraySortQuickPartition(thisObject *_object, left, right, pivot uint, compa arraySortSwap(thisObject, pivot, right) // Right is now the pivot value cursor := left for index := left; index < right; index++ { - if sortCompare(thisObject, index, right, compare) == -1 { // Compare to the pivot value + if sortCompare(thisObject, index, right, compare) < 0 { // Compare to the pivot value arraySortSwap(thisObject, index, cursor) cursor += 1 } |