Skip to content

Commit

Permalink
test(runtime-c-api) Simplify code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Jan 20, 2020
1 parent df2b93e commit 11e915f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/runtime-c-api/tests/test-instantiate.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ int main()
printf("Compile result: %d\n", compile_result);
assert(compile_result == WASMER_OK);

wasmer_value_t param_one;
param_one.tag = WASM_I32;
param_one.value.I32 = 7;
wasmer_value_t param_two;
param_two.tag = WASM_I32;
param_two.value.I32 = 8;
wasmer_value_t param_one = {
.tag = WASM_I32,
.value.I32 = 7,
};
wasmer_value_t param_two = {
.tag = WASM_I32,
.value.I32 = 8,
};
wasmer_value_t params[] = {param_one, param_two};

wasmer_value_t result_one;
Expand Down

0 comments on commit 11e915f

Please sign in to comment.