Made bitsToAdd final

This commit is contained in:
Collin Smith 2020-08-09 20:05:44 -07:00
parent f62c038ffe
commit 4e2cd665cd

View File

@ -238,7 +238,7 @@ public class BitInput {
final int bitsToAddCount = bits - bitsCached;
final int overflowBits = Byte.SIZE - bitsToAddCount;
final long nextByte = byteInput._read8u();
long bitsToAdd = nextByte & MASKS[bitsToAddCount];
final long bitsToAdd = nextByte & MASKS[bitsToAddCount];
cache |= (bitsToAdd << bitsCached);
final long overflow = (nextByte >>> bitsToAddCount) & MASKS[overflowBits];
final long bitsOut = bitsCached & MASKS[bits];