mirror of
https://github.com/corda/corda.git
synced 2025-01-17 02:09:50 +00:00
FileInputStream read() should return an unsigned byte
This commit is contained in:
parent
a9fcb59e6c
commit
8b607d4aa4
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user