Skip to content

Commit

Permalink
fix(runtime-c-api) Use get_wasi_version in non-strict mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Dec 4, 2019
1 parent 0f642a1 commit 41ac416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runtime-c-api/src/import/wasi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub unsafe extern "C" fn wasmer_wasi_get_version(module: *const wasmer_module_t)

let module = &*(module as *const Module);

match wasi::get_wasi_version(module) {
match wasi::get_wasi_version(module, false) {
Some(version) => match version {
wasi::WasiVersion::Snapshot0 => Version::Snapshot0,
wasi::WasiVersion::Snapshot1 => Version::Snapshot1,
Expand Down

0 comments on commit 41ac416

Please sign in to comment.