Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust/tvm-graph-rt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ lazy_static! {
}

#[no_mangle]
pub unsafe extern "C" fn TVMAPISetLastError(cmsg: *const i8) {
pub unsafe extern "C" fn TVMAPISetLastError(cmsg: *const u8) {
*LAST_ERROR.write().unwrap() = Some(std::ffi::CStr::from_ptr(cmsg));
}

Expand Down
2 changes: 1 addition & 1 deletion rust/tvm-graph-rt/src/module/dso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl<'a> DsoModule<'a> {

init_context_func!(
lib,
(TVMAPISetLastError, unsafe extern "C" fn(*const i8)),
(TVMAPISetLastError, unsafe extern "C" fn(*const u8)),
(
TVMBackendAllocWorkspace,
unsafe extern "C" fn(c_int, c_int, u64, c_int, c_int) -> *mut c_void
Expand Down