From e09613c722ca45b2f2d659024d109786f212182b Mon Sep 17 00:00:00 2001 From: James Ring Date: Wed, 27 Nov 2024 19:50:16 -0800 Subject: [PATCH] support WASM_FUNCREF return type in argv_to_results (#3936) --- core/iwasm/common/wasm_c_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/iwasm/common/wasm_c_api.c b/core/iwasm/common/wasm_c_api.c index 0c5e37eabb..500f99dc8b 100644 --- a/core/iwasm/common/wasm_c_api.c +++ b/core/iwasm/common/wasm_c_api.c @@ -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;