From f68379a6df7c9d802666c564f9bc1cbba6883c64 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 14 May 2019 11:49:40 +0200 Subject: [PATCH] test(runtime-c-api) Use `*_arity` variables when calling `wasmer_export_func_call`. --- lib/runtime-c-api/tests/test-exports.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/runtime-c-api/tests/test-exports.c b/lib/runtime-c-api/tests/test-exports.c index 951c4f3a4d2..77ff6683be1 100644 --- a/lib/runtime-c-api/tests/test-exports.c +++ b/lib/runtime-c-api/tests/test-exports.c @@ -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; @@ -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);