Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
Fixes SetIntArrayRegion template for windows builds (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse authored and PeterJohnson committed Jan 3, 2017
1 parent bac4b3d commit 78995f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wpiutil/include/support/jni_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ struct ConvertIntArray<T, true> {
static jintArray ToJava(JNIEnv *env, llvm::ArrayRef<T> 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<const jint*>(arr.data()));
return jarr;
}
};
Expand Down

0 comments on commit 78995f5

Please sign in to comment.