Skip to content

Commit

Permalink
Merge pull request #243 from Nadahar/fix_signed_byte_bug
Browse files Browse the repository at this point in the history
Fix another "signed byte" bug introduced in #234
  • Loading branch information
drewnoakes authored Feb 15, 2017
2 parents 83b37bf + 8446204 commit bb05e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/com/drew/metadata/jpeg/JpegDhtReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void extract(@NotNull final SequentialReader reader, @NotNull final Metad
byte[] lBytes = getBytes(reader, 16);
int vCount = 0;
for (byte b : lBytes) {
vCount += b;
vCount += (b & 0xFF);
}
byte[] vBytes = getBytes(reader, vCount);
directory.getTables().add(new HuffmanTable(tableClass, tableDestinationId, lBytes, vBytes));
Expand Down

0 comments on commit bb05e9e

Please sign in to comment.