Skip to content

Commit 8446204

Browse files
committed
Fixed another "signed byte" bug in e9daa3d
1 parent 83b37bf commit 8446204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/com/drew/metadata/jpeg/JpegDhtReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void extract(@NotNull final SequentialReader reader, @NotNull final Metad
7272
byte[] lBytes = getBytes(reader, 16);
7373
int vCount = 0;
7474
for (byte b : lBytes) {
75-
vCount += b;
75+
vCount += (b & 0xFF);
7676
}
7777
byte[] vBytes = getBytes(reader, vCount);
7878
directory.getTables().add(new HuffmanTable(tableClass, tableDestinationId, lBytes, vBytes));

0 commit comments

Comments
 (0)