aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/nio/PointerBufferSE.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-04-01 02:57:02 +0200
committerMichael Bien <[email protected]>2010-04-01 02:57:02 +0200
commit82ac66ba1e7494b0a76a2063f0d56d3b785c6c31 (patch)
tree6f2300de71579c1c44931ded562bb355894b866a /src/java/com/jogamp/common/nio/PointerBufferSE.java
parent11e70dff96d23708188bf1c8d7c3ffea3c110d43 (diff)
parentf96bcce55789d2101d594c433aea95806d4eb05c (diff)
Merge branch 'master' of github.com:mbien/gluegen
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);
}