Author: mturk Date: Mon Apr 13 07:59:30 2009 New Revision: 764370 URL: http://svn.apache.org/viewvc?rev=764370&view=rev Log: Fix pointer arithmetic
Modified: commons/sandbox/runtime/trunk/src/main/native/shared/dbb.c Modified: commons/sandbox/runtime/trunk/src/main/native/shared/dbb.c URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/dbb.c?rev=764370&r1=764369&r2=764370&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/shared/dbb.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/shared/dbb.c Mon Apr 13 07:59:30 2009 @@ -102,7 +102,7 @@ ACR_EINVALSIZ); return NULL; } - return (*_E)->NewDirectByteBuffer(_E, mem + (size_t)offset, (jlong)size); + return (*_E)->NewDirectByteBuffer(_E, (char *)mem + (size_t)offset, (jlong)size); } ACR_JNI_EXPORT_DECLARE(void, DirectByteBuffer, free)(ACR_JNISTDARGS, jobject bb)