From 8b607d4aa4cba67b3efcb526649069dc891963d0 Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Thu, 4 Oct 2007 13:57:39 -0600 Subject: [PATCH] FileInputStream read() should return an unsigned byte --- classpath/java-io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classpath/java-io.cpp b/classpath/java-io.cpp index bfda2cb730..f0f58a1c43 100644 --- a/classpath/java-io.cpp +++ b/classpath/java-io.cpp @@ -198,7 +198,7 @@ Java_java_io_FileInputStream_read__I(JNIEnv* e, jclass, jint fd) if (r <= 0) { return -1; } else { - return data; + return data & 0xff; } }