aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/nio/PointerBufferSE.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/PointerBufferSE.java
parentfdb14c0c37a9e434b302b7d7dd3c6dbc52c02bb5 (diff)
Fix 32bit masking / tests
Diffstat (limited to 'src/java/com/jogamp/common/nio/PointerBufferSE.java')
-rwxr-xr-xsrc/java/com/jogamp/common/nio/PointerBufferSE.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/nio/PointerBufferSE.java b/src/java/com/jogamp/common/nio/PointerBufferSE.java
index 11dc629..04f9ca1 100755
--- a/src/java/com/jogamp/common/nio/PointerBufferSE.java
+++ b/src/java/com/jogamp/common/nio/PointerBufferSE.java
@@ -61,7 +61,7 @@ final class PointerBufferSE extends PointerBuffer {
throw new IndexOutOfBoundsException();
}
if (Platform.is32Bit()) {
- return ((IntBuffer) pb).get(idx);
+ return (long) ((IntBuffer) pb).get(idx) & 0x00000000FFFFFFFFL;
} else {
return ((LongBuffer) pb).get(idx);
}