mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
fix single-byte BufferedInputStream.read to generate unsigned result
This commit is contained in:
parent
e0e827596e
commit
27efbcf5e1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user