diff --git a/classpath/java/nio/ByteBuffer.java b/classpath/java/nio/ByteBuffer.java index 9aed90f5b5..004ebda08c 100644 --- a/classpath/java/nio/ByteBuffer.java +++ b/classpath/java/nio/ByteBuffer.java @@ -178,7 +178,7 @@ public class ByteBuffer { public long getLong() { checkGet(8); long l = (long)getInt() << 32; - l |= (long)getInt() & 0xffffffff; + l |= (long)getInt() & 0xffffffffL; return l; }