mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
Fixed subtle bug in getLong()
This commit is contained in:
parent
3fbe5b9a01
commit
32946417b7
@ -177,8 +177,8 @@ public class ByteBuffer {
|
|||||||
|
|
||||||
public long getLong() {
|
public long getLong() {
|
||||||
checkGet(8);
|
checkGet(8);
|
||||||
long l = getInt() << 32;
|
long l = (long)getInt() << 32;
|
||||||
l |= getInt() & 0xffffffff;
|
l |= (long)getInt() & 0xffffffff;
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user