Merge pull request #796 from souji1103/dev

Prevent ArrayIndexOutOfBoundsException when proguard is enabled
This commit is contained in:
ojw28 2015-09-17 15:15:59 +01:00
commit 1be3f9dcbc

View File

@ -138,7 +138,8 @@ public final class ParsableBitArray {
int returnValue = 0;
// While n >= 8, read whole bytes.
while (n >= 8) {
int numBytes = (n / 8);
for (int i = 0; i < numBytes; i ++) {
int byteValue;
if (bitOffset != 0) {
byteValue = ((data[byteOffset] & 0xFF) << bitOffset)