SparseBitSet icon indicating copy to clipboard operation
SparseBitSet copied to clipboard

Bug in previousClearBit

Open incaseoftrouble opened this issue 6 years ago • 1 comments

Hi,

while testing the 1.2 version I found the following issue:

SparseBitSet set = new SparseBitSet();
set.set(0);
set.set(64);
System.out.println(set.previousClearBit(64));
set.clear(0);
set.set(1);
System.out.println(set.previousClearBit(64));

Expected: (consistent with BitSet)

63
63

Got:

-1
0

@BrentDouglas

incaseoftrouble avatar Nov 07 '18 15:11 incaseoftrouble

Hi, any chance of a new release with these fixes? Thanks.

re-thc avatar Mar 15 '19 05:03 re-thc