Fix signature of wasmtime_module_new

This commit is contained in:
Yury Delendik
2020-07-15 14:07:36 -05:00
parent 6a01b32474
commit a817470fab
12 changed files with 20 additions and 18 deletions

View File

@@ -89,7 +89,7 @@ int main() {
wasm_module_t *module = NULL;
wasm_trap_t *trap = NULL;
wasm_instance_t *instance = NULL;
error = wasmtime_module_new(store, &wasm, &module);
error = wasmtime_module_new(engine, &wasm, &module);
wasm_byte_vec_delete(&wasm);
if (error != NULL)
exit_with_error("failed to compile module", error, NULL);