Skip to content

Commit e09613c

Browse files
authored
support WASM_FUNCREF return type in argv_to_results (#3936)
1 parent 8698d22 commit e09613c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/iwasm/common/wasm_c_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3330,6 +3330,7 @@ argv_to_results(const uint32 *argv, const wasm_valtype_vec_t *result_defs,
33303330
break;
33313331
#if WASM_ENABLE_GC == 0 && WASM_ENABLE_REF_TYPES != 0
33323332
case WASM_EXTERNREF:
3333+
case WASM_FUNCREF:
33333334
result->of.ref = (struct wasm_ref_t *)(*(uintptr_t *)argv);
33343335
argv += sizeof(uintptr_t) / sizeof(uint32);
33353336
break;

0 commit comments

Comments
 (0)