From 49c1f5c1c5bd0b39b541be56199dce48ec91070e Mon Sep 17 00:00:00 2001 From: csh <458761603@qq.com> Date: Mon, 17 Jun 2024 14:49:24 +0800 Subject: [PATCH] fix: cross-plaform type Signed-off-by: csh <458761603@qq.com> --- crates/wasmedge-sys/src/plugin.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/wasmedge-sys/src/plugin.rs b/crates/wasmedge-sys/src/plugin.rs index 30df27136..8adad5649 100644 --- a/crates/wasmedge-sys/src/plugin.rs +++ b/crates/wasmedge-sys/src/plugin.rs @@ -50,7 +50,8 @@ impl PluginManager { .iter() .map(|&x| std::ffi::CString::new(x).unwrap()) .collect(); - let c_strs: Vec<*const i8> = c_args.iter().map(|x| x.as_ptr()).collect(); + let c_strs: Vec<*const ::std::os::raw::c_char> = + c_args.iter().map(|x| x.as_ptr()).collect(); let len = c_strs.len() as u32; unsafe { ffi::WasmEdge_PluginInitWASINN(c_strs.as_ptr(), len) } }