aboutsummaryrefslogtreecommitdiffstats
path: root/src/native
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-06-10 21:58:11 +0200
committerSven Gothel <[email protected]>2011-06-10 21:58:11 +0200
commit6f1a52fb7db5b923a39994586e9af9c001031cba (patch)
treee544b5a1a8708e9b971d9c26389a40e69fd84b3a /src/native
parent396ef5fe91704062c96a7355b241db20ec8007fb (diff)
remove warnings
Diffstat (limited to 'src/native')
-rw-r--r--src/native/common/JVM_Tool.c1
-rw-r--r--src/native/common/PointerBuffer.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/native/common/JVM_Tool.c b/src/native/common/JVM_Tool.c
index bd6d340..652d946 100644
--- a/src/native/common/JVM_Tool.c
+++ b/src/native/common/JVM_Tool.c
@@ -43,7 +43,6 @@
JNIEXPORT jboolean JNICALL
Java_com_jogamp_common_jvm_JVMUtil_initialize(JNIEnv *env, jclass _unused, jobject nioBuffer) {
- int res;
void * ptr = NULL;
if (nioBuffer != NULL) {
ptr = (void *) (*env)->GetDirectBufferAddress(env, nioBuffer);
diff --git a/src/native/common/PointerBuffer.c b/src/native/common/PointerBuffer.c
index a7b8cb0..f3e25d3 100644
--- a/src/native/common/PointerBuffer.c
+++ b/src/native/common/PointerBuffer.c
@@ -3,10 +3,12 @@
#include <assert.h>
+#include <gluegen_stdint.h>
+
#include "com_jogamp_common_nio_PointerBuffer.h"
JNIEXPORT jlong JNICALL
Java_com_jogamp_common_nio_PointerBuffer_getDirectBufferAddressImpl(JNIEnv *env, jclass _unused, jobject directBuffer) {
- return ( NULL != directBuffer ) ? ( jlong) (*env)->GetDirectBufferAddress(env, directBuffer) : 0L ;
+ return ( NULL != directBuffer ) ? (jlong) (intptr_t) (*env)->GetDirectBufferAddress(env, directBuffer) : 0L ;
}