From 6f1a52fb7db5b923a39994586e9af9c001031cba Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 10 Jun 2011 21:58:11 +0200 Subject: remove warnings --- src/native/common/PointerBuffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/native/common/PointerBuffer.c') 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 +#include + #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 ; } -- cgit v1.2.3