Skip to content

Commit 98de9ba

Browse files
authored
[TVM4J][BugFix] Fix unhandled return type in JNI (#17308)
1 parent add93d7 commit 98de9ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jvm/native/src/main/native/jni_helper_func.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ jobject tvmRetValueToJava(JNIEnv* env, TVMValue value, int tcode) {
188188
switch (tcode) {
189189
case kDLUInt:
190190
case kDLInt:
191+
case kTVMArgBool:
191192
return newTVMValueLong(env, static_cast<jlong>(value.v_int64));
192193
case kDLFloat:
193194
return newTVMValueDouble(env, static_cast<jdouble>(value.v_float64));

0 commit comments

Comments
 (0)