Skip to content

Commit

Permalink
Merge pull request #109 from second-state/fix/cross-platform
Browse files Browse the repository at this point in the history
fix: cross-plaform type
  • Loading branch information
L-jasmine authored Jun 18, 2024
2 parents e9173cd + 49c1f5c commit 706d047
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/wasmedge-sys/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}
Expand Down

0 comments on commit 706d047

Please sign in to comment.