mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-06 03:31:43 +00:00
Fixes SetIntArrayRegion template for windows builds (#178)
This commit is contained in:
committed by
Peter Johnson
parent
e3f99a4a22
commit
9a2ec13ba4
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user