diff --git a/classpath/java/io/BufferedInputStream.java b/classpath/java/io/BufferedInputStream.java index 51a1423606..585542492a 100644 --- a/classpath/java/io/BufferedInputStream.java +++ b/classpath/java/io/BufferedInputStream.java @@ -38,7 +38,7 @@ public class BufferedInputStream extends InputStream { } } - return buffer[position++]; + return buffer[position++] & 0xFF; } public int read(byte[] b, int offset, int length) throws IOException {