Skip to content

Commit

Permalink
Fixing cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craigacp committed Jan 14, 2024
1 parent 41d4ff8 commit 92352ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/src/main/native/OrtJniUtil.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ jobject convertToTensorInfo(JNIEnv *jniEnv, const OrtApi * api, const OrtTensorT
jobjectArray names = (*jniEnv)->NewObjectArray(jniEnv, safecast_size_t_to_jsize(numDim), stringClazz, NULL);
for (size_t i = 0; i < numDim; i++) {
jobject javaName = (*jniEnv)->NewStringUTF(jniEnv, dimensionNames[i]);
(*jniEnv)->SetObjectArrayElement(jniEnv, names, i, safecast_size_t_to_jsize(javaName));
(*jniEnv)->SetObjectArrayElement(jniEnv, names, safecast_size_t_to_jsize(i), javaName);
}
free(dimensionNames);

Expand Down

0 comments on commit 92352ce

Please sign in to comment.