mirror of
https://github.com/corda/corda.git
synced 2025-01-29 07:34:13 +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) {
|
if (r <= 0) {
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
return data;
|
return data & 0xff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user