From 4e2cd665cd4d6ec246eae508a3549ca983ab193f Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sun, 9 Aug 2020 20:05:44 -0700 Subject: [PATCH] Made bitsToAdd final --- core/src/com/riiablo/io/BitInput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/riiablo/io/BitInput.java b/core/src/com/riiablo/io/BitInput.java index e5efda11..76980c32 100644 --- a/core/src/com/riiablo/io/BitInput.java +++ b/core/src/com/riiablo/io/BitInput.java @@ -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];