Skip to content

Commit

Permalink
Merge pull request barchart#66 from andre77/master
Browse files Browse the repository at this point in the history
byte is a signed type in java, so we need to mask it with &0xFF
  • Loading branch information
Andrei Pozolotin authored and Andrei Pozolotin committed May 11, 2014
2 parents 0c87c09 + 74e26c6 commit 760e96b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public int read() throws IOException {

assert count == 1;

return data[0];
return data[0] & 0xFF;

}

Expand Down

0 comments on commit 760e96b

Please sign in to comment.