Fixed a small array out of bounds exception error

- Error in Byte ConverterTest where the array was pointing at the wrong place which could make an error
main
Fan-Wu Yang 9 years ago
parent 949b967abb
commit 1d33015925

@ -114,7 +114,7 @@ public class ByteConverter {
bites[i] = 0b0;
}
for (int i = maxSize - bytes.length; i < maxSize; i++) {
bites[i] = bytes[i];
bites[i] = bytes[i - maxSize + bytes.length];
if (i > maxSize){//break if over the limit
break;
}

Loading…
Cancel
Save