Skip to content

Commit 49c1f5c

Browse files
committed
fix: cross-plaform type
Signed-off-by: csh <[email protected]>
1 parent e9173cd commit 49c1f5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/wasmedge-sys/src/plugin.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ impl PluginManager {
5050
.iter()
5151
.map(|&x| std::ffi::CString::new(x).unwrap())
5252
.collect();
53-
let c_strs: Vec<*const i8> = c_args.iter().map(|x| x.as_ptr()).collect();
53+
let c_strs: Vec<*const ::std::os::raw::c_char> =
54+
c_args.iter().map(|x| x.as_ptr()).collect();
5455
let len = c_strs.len() as u32;
5556
unsafe { ffi::WasmEdge_PluginInitWASINN(c_strs.as_ptr(), len) }
5657
}

0 commit comments

Comments
 (0)