diff options
author | Sven Gothel <[email protected]> | 2010-04-01 01:15:31 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-04-01 01:15:31 +0200 |
commit | f96bcce55789d2101d594c433aea95806d4eb05c (patch) | |
tree | 50ef20f645529096c2ddcee93e21e52273e5cfde /src/java/com/jogamp/common/nio/PointerBufferME_CDC_FP.java | |
parent | fdb14c0c37a9e434b302b7d7dd3c6dbc52c02bb5 (diff) |
Fix 32bit masking / tests
Diffstat (limited to 'src/java/com/jogamp/common/nio/PointerBufferME_CDC_FP.java')
-rwxr-xr-x | src/java/com/jogamp/common/nio/PointerBufferME_CDC_FP.java | 2 |
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)); |