From dd4452ec8fd6783ec9b43aa221691e414a643270 Mon Sep 17 00:00:00 2001 From: Graham Chapman Date: Sun, 20 Jan 2019 21:28:11 -0500 Subject: [PATCH] Fix compile error It's illegal to add an integer to a void pointer. [ci skip] Signed-off-by: Graham Chapman --- runtime/j9vm/j8vmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/j9vm/j8vmi.c b/runtime/j9vm/j8vmi.c index e6bcb596e8c..002191a3dd1 100644 --- a/runtime/j9vm/j8vmi.c +++ b/runtime/j9vm/j8vmi.c @@ -121,8 +121,8 @@ JVM_GetTemporaryDirectory(JNIEnv *env) void JNICALL JVM_CopySwapMemory(JNIEnv *env, jobject srcObj, jlong srcOffset, jobject dstObj, jlong dstOffset, jlong size, jlong elemSize) { - void *srcBytes = NULL; - void *dstBytes = NULL; + U_8 *srcBytes = NULL; + U_8 *dstBytes = NULL; U_8 *dstAddr = NULL; if (NULL != srcObj) { srcBytes = (*env)->GetPrimitiveArrayCritical(env, srcObj, NULL);