From 01994c79f4e39db08a343fc9db23e771e670ef39 Mon Sep 17 00:00:00 2001 From: synergydev Date: Mon, 14 Oct 2013 12:20:16 -0700 Subject: core: fix arithmetic on a pointer to void Use char* instead of void* for this pointer arithmetic. Fixes the following: error: arithmetic on a pointer to void buf = buf + offset; ~~~ ^ Change-Id: I6cfc92c9240fda66a52e780cda7820fdba76914a --- core/jni/com_google_android_gles_jni_GLImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/jni/com_google_android_gles_jni_GLImpl.cpp b/core/jni/com_google_android_gles_jni_GLImpl.cpp index b0c26c5157c1..b3b004970b6f 100644 --- a/core/jni/com_google_android_gles_jni_GLImpl.cpp +++ b/core/jni/com_google_android_gles_jni_GLImpl.cpp @@ -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"); -- cgit v1.2.3-59-g8ed1b