Merge "core: fix arithmetic on a pointer to void"

This commit is contained in:
Nick Kralevich
2013-10-14 20:11:05 +00:00
committed by Gerrit Code Review

View File

@@ -183,7 +183,7 @@ getDirectBufferPointer(JNIEnv *_env, jobject buffer) {
if (array) {
releasePointer(_env, array, buf, 0);
}
buf = buf + offset;
buf = (char*)buf + offset;
} else {
jniThrowException(_env, "java/lang/IllegalArgumentException",
"Must use a native order direct Buffer");