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

* commit 'd6c2ccb25f08447b0358173ff64725d28f207d7b':
  core: fix arithmetic on a pointer to void
This commit is contained in:
Nick Kralevich
2013-10-14 13:14:37 -07:00
committed by Android Git Automerger

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");