Skip to content
Snippets Groups Projects
Commit e3c1cf55 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

release logical arrays as "int[]" (instead of byte[])

parent 73979285
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ void callExit(JNIEnv *env) {
for (i = 0; i < copiedVectorsIndex; i++) {
CopiedVector cv = copiedVectors[i];
switch (cv.type) {
case INTSXP: {
case INTSXP: case LGLSXP: {
jintArray intArray = (jintArray) cv.jArray;
(*env)->ReleaseIntArrayElements(env, intArray, (jint *)cv.data, 0);
break;
......@@ -112,7 +112,7 @@ void callExit(JNIEnv *env) {
}
case LGLSXP: case RAWSXP: {
case RAWSXP: {
jbyteArray byteArray = (jbyteArray) cv.jArray;
(*env)->ReleaseByteArrayElements(env, byteArray, (jbyte *)cv.data, 0);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment