From 1d04186a0c28c0a973b0db4c9e07cd83bd278796 Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Wed, 31 Oct 2007 09:27:26 -0600 Subject: [PATCH] Fixed bug in ByteBuffer.getLong() --- classpath/java/nio/ByteBuffer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }