aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/nio/PointerBufferME_CDC_FP.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-04-01 01:15:31 +0200
committerSven Gothel <[email protected]>2010-04-01 01:15:31 +0200
commitf96bcce55789d2101d594c433aea95806d4eb05c (patch)
tree50ef20f645529096c2ddcee93e21e52273e5cfde /src/java/com/jogamp/common/nio/PointerBufferME_CDC_FP.java
parentfdb14c0c37a9e434b302b7d7dd3c6dbc52c02bb5 (diff)
Fix 32bit masking / tests
Diffstat (limited to 'src/java/com/jogamp/common/nio/PointerBufferME_CDC_FP.java')
-rwxr-xr-xsrc/java/com/jogamp/common/nio/PointerBufferME_CDC_FP.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/nio/PointerBufferME_CDC_FP.java b/src/java/com/jogamp/common/nio/PointerBufferME_CDC_FP.java
index 6e2c7d9..5f84ffc 100755
--- a/src/java/com/jogamp/common/nio/PointerBufferME_CDC_FP.java
+++ b/src/java/com/jogamp/common/nio/PointerBufferME_CDC_FP.java
@@ -56,7 +56,7 @@ final class PointerBufferME_CDC_FP extends PointerBuffer {
throw new IndexOutOfBoundsException();
}
if (Platform.is32Bit()) {
- return pb.get(idx);
+ return (long) pb.get(idx) & 0x00000000FFFFFFFFL;
} else {
idx = idx << 1; // 8-byte to 4-byte offset
long lo = 0x00000000FFFFFFFFL & ((long) pb.get(idx));