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

master
Dmitry Isaenko 2022-09-17 02:52:54 +03:00
parent 275cb4f3df
commit c721c30389
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public class ISO9660 {
int entryOffset = 0;
while (entryOffset < entry.getDataSize()){
byte entryLength = bytes[entryOffset];
int entryLength = Byte.toUnsignedInt(bytes[entryOffset]);
if (entryLength == 0)
break;