Skip to content

Commit

Permalink
[Java] Fix boolean value conversion for Java
Browse files Browse the repository at this point in the history
This PR fixes the conversion of boolean value for Java, following the
changes in apache/tvm#17240
  • Loading branch information
MasterJH5574 committed Aug 29, 2024
1 parent 4b89cc9 commit f65b732
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 f65b732

Please sign in to comment.