lemire / javaewah

A compressed alternative to the Java BitSet class

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChunkIterator not iterating correctly

rhasselbaum opened this issue · comments

Similar to issue #58, I am seeing incorrect behavior in ChunkIterator in release 1.1.2. Sample code:

import com.googlecode.javaewah.*;

EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf(243,260,1000);
ChunkIterator iter = bitmap.chunkIterator();
iter.move(245);
assert iter.nextLength() == 15;  // fails; returns 691

Thanks @rhasselbaum for reporting the issue.
Fixed @497c2e2b44c0963474779ff57085fd16181f5e55

@gssiyankai

According to travis, we have test failures:

https://travis-ci.org/lemire/javaewah

Do our tests pass for you?

@lemire,
My bad. It should be okay now :)

Thank you! After pull from master, my tests are passing now, too.

Fix in release 1.1.3. Closing.