Skip to content
Browse files

Merge branch 'bugfix/bignestedarray'

  • Loading branch information...
2 parents c1604b5 + 76e6ea8 commit 0df87fe2ecdb1d513f02fa7b061a6aeac4dde286 Dmytro Ivchenko committed Mar 22, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 bobo-browse/src/main/java/com/browseengine/bobo/util/BigNestedIntArray.java
View
4 bobo-browse/src/main/java/com/browseengine/bobo/util/BigNestedIntArray.java
@@ -685,7 +685,7 @@ public final boolean containsValueInRangeShift(int id, int value, int startValue
final int[] page = _list[id >> PAGEID_SHIFT];
if(page == null) return false;
- final int val = page[id & SLOTID_MASK];
+ int val = page[id & SLOTID_MASK];
if (val >= 0)
{
int shiftedVal = val >> shift;
@@ -701,13 +701,13 @@ else if(val != MISSING)
int end = idx + (val & COUNT_MASK);
while(idx < end)
{
+ val = page[idx++];
int shiftedVal = val >> shift;
if(shiftedVal >= startValue && shiftedVal < endValue)
{
if(value < 0 || (val & mask) == value)
return true;
}
- idx++;
}
}
return false;

0 comments on commit 0df87fe

Please sign in to comment.
Something went wrong with that request. Please try again.