Fixed subtle bug in getLong()

This commit is contained in:
Eric Scharff 2007-10-11 16:42:33 -06:00
parent 3fbe5b9a01
commit 32946417b7

View File

@ -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;
}