Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ private void flushDocBlock(boolean finishTerm) throws IOException {
spareBitSet.set(s);
}
// We never use the bit set encoding when it requires more than Integer.SIZE=32 bits per
// value. So the bit set cannot have more than BLOCK_SIZE * Integer.SIZE / Long.SIZE = 64
// longs, which fits on a byte.
// value. So the bit set cannot have more than BLOCK_SIZE * Integer.SIZE / Long.SIZE = 128
// longs. -128 fits in a byte so we're good.
assert numBitSetLongs <= BLOCK_SIZE / 2;
level0Output.writeByte((byte) -numBitSetLongs);
for (int i = 0; i < numBitSetLongs; ++i) {
Expand Down
Loading