Skip to content

Commit bea2d48

Browse files
msobiersshipilev
authored andcommitted
8312475: org.jline.util.PumpReader signed byte problem
Reviewed-by: shade, jlahoda
1 parent 9f767aa commit bea2d48

File tree

1 file changed

+1
-1
lines changed
  • src/jdk.internal.le/share/classes/jdk/internal/org/jline/utils

1 file changed

+1
-1
lines changed

src/jdk.internal.le/share/classes/jdk/internal/org/jline/utils/PumpReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ public int read() throws IOException {
414414
return EOF;
415415
}
416416

417-
return buffer.get();
417+
return buffer.get() & 0xFF;
418418
}
419419

420420
private boolean readUsingBuffer() throws IOException {

0 commit comments

Comments
 (0)