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
This commit is contained in:
@@ -114,7 +114,7 @@ public class ByteConverter {
|
|||||||
bites[i] = 0b0;
|
bites[i] = 0b0;
|
||||||
}
|
}
|
||||||
for (int i = maxSize - bytes.length; i < maxSize; i++) {
|
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
|
if (i > maxSize){//break if over the limit
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user