Skip to content

Commit

Permalink
8312475: org.jline.util.PumpReader signed byte problem
Browse files Browse the repository at this point in the history
Reviewed-by: shade, jlahoda
  • Loading branch information
msobiers authored and shipilev committed Oct 23, 2023
1 parent 9f767aa commit bea2d48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ public int read() throws IOException {
return EOF;
}

return buffer.get();
return buffer.get() & 0xFF;
}

private boolean readUsingBuffer() throws IOException {
Expand Down

1 comment on commit bea2d48

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.