Skip to content

Commit

Permalink
Update rust/tvm-rt/src/to_function.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Junru Shao <junrushao1994@gmail.com>
  • Loading branch information
tqchen and junrushao committed Oct 24, 2020
1 parent fb96d5c commit 55c6e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/tvm-rt/src/to_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ pub trait ToFunction<I, O>: Sized {
value = args_list[i];
tcode = type_codes_list[i];
if tcode == ffi::TVMArgTypeCode_kTVMObjectHandle as c_int
|| tcode == ffi::TVMArgTypeCode_kkTVMObjectRValueRefArg as c_int
|| tcode == ffi::TVMArgTypeCode_kTVMObjectRValueRefArg as c_int
|| tcode == ffi::TVMArgTypeCode_kTVMPackedFuncHandle as c_int
|| tcode == ffi::TVMArgTypeCode_kTVMModuleHandle as c_int
|| tcode == ffi::TVMArgTypeCode_kTVMNDArrayFuncHandle as c_int
|| tcode == ffi::TVMArgTypeCode_kTVMNDArrayHandle as c_int
{
check_call!(ffi::TVMCbArgToReturn(
&mut value as *mut _,
Expand Down

0 comments on commit 55c6e9d

Please sign in to comment.