Skip to content

Commit

Permalink
[TVM4J][BugFix] Fix unhandled return type in JNI (apache#17308)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxuanchiadm authored Aug 29, 2024
1 parent add93d7 commit 98de9ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jvm/native/src/main/native/jni_helper_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ jobject tvmRetValueToJava(JNIEnv* env, TVMValue value, int tcode) {
switch (tcode) {
case kDLUInt:
case kDLInt:
case kTVMArgBool:
return newTVMValueLong(env, static_cast<jlong>(value.v_int64));
case kDLFloat:
return newTVMValueDouble(env, static_cast<jdouble>(value.v_float64));
Expand Down

0 comments on commit 98de9ba

Please sign in to comment.