Commit 7156c9b0 authored by Ilya Matiach's avatar Ilya Matiach Committed by Nikita Titov
Browse files

[SWIG] fix swig build warnings/errors on windows (#2141)

parent 40e3048f
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
// int* indices0 = (int*)jenv->GetPrimitiveArrayCritical(indices, 0); // int* indices0 = (int*)jenv->GetPrimitiveArrayCritical(indices, 0);
// double* values0 = (double*)jenv->GetPrimitiveArrayCritical(values, 0); // double* values0 = (double*)jenv->GetPrimitiveArrayCritical(values, 0);
// in test-usecase an alternative to GetPrimitiveArrayCritical as it performs copies // in test-usecase an alternative to GetPrimitiveArrayCritical as it performs copies
int* indices0 = jenv->GetIntArrayElements(indices, 0); int* indices0 = (int *)jenv->GetIntArrayElements(indices, 0);
double* values0 = jenv->GetDoubleArrayElements(values, 0); double* values0 = jenv->GetDoubleArrayElements(values, 0);
jniCache.push_back({indices, values, indices0, values0, size}); jniCache.push_back({indices, values, indices0, values0, size});
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
// jenv->ReleasePrimitiveArrayCritical(jc.values, jc.values0, JNI_ABORT); // jenv->ReleasePrimitiveArrayCritical(jc.values, jc.values0, JNI_ABORT);
// jenv->ReleasePrimitiveArrayCritical(jc.indices, jc.indices0, JNI_ABORT); // jenv->ReleasePrimitiveArrayCritical(jc.indices, jc.indices0, JNI_ABORT);
jenv->ReleaseDoubleArrayElements(jc.values, jc.values0, JNI_ABORT); jenv->ReleaseDoubleArrayElements(jc.values, jc.values0, JNI_ABORT);
jenv->ReleaseIntArrayElements(jc.indices, jc.indices0, JNI_ABORT); jenv->ReleaseIntArrayElements(jc.indices, (jint *)jc.indices0, JNI_ABORT);
} }
return ret; return ret;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment