mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-11 09:25:20 +00:00
support WASM_FUNCREF return type in argv_to_results (#3936)
This commit is contained in:
parent
8698d22e67
commit
e09613c722
|
@ -3330,6 +3330,7 @@ argv_to_results(const uint32 *argv, const wasm_valtype_vec_t *result_defs,
|
||||||
break;
|
break;
|
||||||
#if WASM_ENABLE_GC == 0 && WASM_ENABLE_REF_TYPES != 0
|
#if WASM_ENABLE_GC == 0 && WASM_ENABLE_REF_TYPES != 0
|
||||||
case WASM_EXTERNREF:
|
case WASM_EXTERNREF:
|
||||||
|
case WASM_FUNCREF:
|
||||||
result->of.ref = (struct wasm_ref_t *)(*(uintptr_t *)argv);
|
result->of.ref = (struct wasm_ref_t *)(*(uintptr_t *)argv);
|
||||||
argv += sizeof(uintptr_t) / sizeof(uint32);
|
argv += sizeof(uintptr_t) / sizeof(uint32);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user