Cast byte to int. Bytes could be negative in java and, obviously, not in ECMA-119's size-holder entries %)
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
275cb4f3df
commit
c721c30389
|
@ -134,7 +134,7 @@ public class ISO9660 {
|
||||||
|
|
||||||
int entryOffset = 0;
|
int entryOffset = 0;
|
||||||
while (entryOffset < entry.getDataSize()){
|
while (entryOffset < entry.getDataSize()){
|
||||||
byte entryLength = bytes[entryOffset];
|
int entryLength = Byte.toUnsignedInt(bytes[entryOffset]);
|
||||||
|
|
||||||
if (entryLength == 0)
|
if (entryLength == 0)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue