Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01994c79 authored by synergydev's avatar synergydev
Browse files

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
parent a299862d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");