Skip to content

Commit

Permalink
test(runtime-c-api) Use *_arity variables when calling `wasmer_expo…
Browse files Browse the repository at this point in the history
…rt_func_call`.
  • Loading branch information
Hywan committed May 14, 2019
1 parent d3c75a3 commit f68379a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/runtime-c-api/tests/test-exports.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ int main()
assert(returns_sig[0] == WASM_I32);
free(returns_sig);


wasmer_value_t param_one;
param_one.tag = WASM_I32;
param_one.value.I32 = 7;
Expand All @@ -71,7 +70,7 @@ int main()
wasmer_value_t result_one;
wasmer_value_t results[] = {result_one};

wasmer_result_t call_result = wasmer_export_func_call(func, params, 2, results, 1);
wasmer_result_t call_result = wasmer_export_func_call(func, params, params_arity, results, returns_arity);
printf("Call result: %d\n", call_result);
printf("Result: %d\n", results[0].value.I32);
assert(results[0].value.I32 == 15);
Expand Down

0 comments on commit f68379a

Please sign in to comment.