Fixed bug in ByteBuffer.getLong()

This commit is contained in:
Eric Scharff 2007-10-31 09:27:26 -06:00
parent 2fd2df53fd
commit 1d04186a0c

View File

@ -178,7 +178,7 @@ public class ByteBuffer {
public long getLong() { public long getLong() {
checkGet(8); checkGet(8);
long l = (long)getInt() << 32; long l = (long)getInt() << 32;
l |= (long)getInt() & 0xffffffff; l |= (long)getInt() & 0xffffffffL;
return l; return l;
} }