From 78995f5cca34fa259b04b4bb9a6bc62636af1389 Mon Sep 17 00:00:00 2001 From: Thad House Date: Mon, 2 Jan 2017 22:29:56 -0800 Subject: [PATCH] Fixes SetIntArrayRegion template for windows builds (#178) --- wpiutil/include/support/jni_util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpiutil/include/support/jni_util.h b/wpiutil/include/support/jni_util.h index 54ef526..3523894 100644 --- a/wpiutil/include/support/jni_util.h +++ b/wpiutil/include/support/jni_util.h @@ -301,7 +301,8 @@ struct ConvertIntArray { static jintArray ToJava(JNIEnv *env, llvm::ArrayRef arr) { jintArray jarr = env->NewIntArray(arr.size()); if (!jarr) return nullptr; - env->SetIntArrayRegion(jarr, 0, arr.size(), arr.data()); + env->SetIntArrayRegion(jarr, 0, arr.size(), + reinterpret_cast(arr.data())); return jarr; } };