FileInputStream read() should return an unsigned byte

This commit is contained in:
Eric Scharff 2007-10-04 13:57:39 -06:00
parent a9fcb59e6c
commit 8b607d4aa4

View File

@ -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;
}
}