Skip to content

Commit

Permalink
support WASM_FUNCREF return type in argv_to_results (#3936)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjamesr authored Nov 28, 2024
1 parent 8698d22 commit e09613c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/iwasm/common/wasm_c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -3330,6 +3330,7 @@ argv_to_results(const uint32 *argv, const wasm_valtype_vec_t *result_defs,
break;
#if WASM_ENABLE_GC == 0 && WASM_ENABLE_REF_TYPES != 0
case WASM_EXTERNREF:
case WASM_FUNCREF:
result->of.ref = (struct wasm_ref_t *)(*(uintptr_t *)argv);
argv += sizeof(uintptr_t) / sizeof(uint32);
break;
Expand Down

0 comments on commit e09613c

Please sign in to comment.