Skip to content

Commit

Permalink
+ Fixed bug in binary search (was not giving [ ... ) behavior)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Lee authored and rbuels committed Aug 25, 2012
1 parent be3f3f6 commit 22deb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JBrowse/Store/NCList.js
Expand Up @@ -95,7 +95,7 @@ NCList.prototype.binarySearch = function(arr, item, getter) {

while (high - low > 1) {
mid = (low + high) >>> 1;
if (getter(arr[mid]) > item)
if (getter(arr[mid]) >= item)
high = mid;
else
low = mid;
Expand Down

0 comments on commit 22deb7c

Please sign in to comment.