diff --git a/src/main/java/com/zaxxer/sparsebits/SparseBitSet.java b/src/main/java/com/zaxxer/sparsebits/SparseBitSet.java index 4efbc90..3d86170 100644 --- a/src/main/java/com/zaxxer/sparsebits/SparseBitSet.java +++ b/src/main/java/com/zaxxer/sparsebits/SparseBitSet.java @@ -1058,7 +1058,7 @@ public int previousClearBit(int i) int w1 = w >> SHIFT1; if (w1 > aSize) return i; - w1 = Math.min(w1, aSize); + int w4 = i % LENGTH4; long word;