mirror of
https://github.com/corda/corda.git
synced 2025-01-19 03:06:36 +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() {
|
||||
checkGet(8);
|
||||
long l = getInt() << 32;
|
||||
l |= getInt() & 0xffffffff;
|
||||
long l = (long)getInt() << 32;
|
||||
l |= (long)getInt() & 0xffffffff;
|
||||
return l;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user