Add manual casting of jobject to jdoubleArray.

This commit is contained in:
Pedro Martinez Mediano 2017-05-19 05:38:37 +10:00
parent dd83cd9ef1
commit 1abd5a084e
1 changed files with 2 additions and 2 deletions

View File

@ -76,8 +76,8 @@ JNIEXPORT jdoubleArray JNICALL
}
for (i = 0; i < N; i++) {
jdoubleArray j_sourceRow = (*env)->GetObjectArrayElement(env, j_sourceArray, i);
jdoubleArray j_destRow = (*env)->GetObjectArrayElement(env, j_destArray, i);
jdoubleArray j_sourceRow = (jdoubleArray) (*env)->GetObjectArrayElement(env, j_sourceArray, i);
jdoubleArray j_destRow = (jdoubleArray) (*env)->GetObjectArrayElement(env, j_destArray, i);
jdouble *sourceRow = (*env)->GetDoubleArrayElements(env, j_sourceRow, NULL);
jdouble *destRow = (*env)->GetDoubleArrayElements(env, j_destRow, NULL);