Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

#735 -- allows sortedIndex to work on extremely large arrays.

  • Loading branch information...
commit e852e0129f0e618652eb55f416eee2f90de18b4d 1 parent ab31329
@jashkenas authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  underscore.js
View
2  underscore.js
@@ -354,7 +354,7 @@
var value = iterator(obj);
var low = 0, high = array.length;
while (low < high) {
- var mid = (low + high) >> 1;
+ var mid = (low + high) >>> 1;
iterator(array[mid]) < value ? low = mid + 1 : high = mid;
}
return low;
Please sign in to comment.
Something went wrong with that request. Please try again.