Fix ref-types sample invalid externref signature (#1119)

Fix ref-types sample running error due to using invalid externref signatures
This commit is contained in:
Wenyong Huang 2022-04-25 12:59:37 +08:00 committed by GitHub
parent 5ab368dd00
commit 9013a474bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,8 +30,8 @@ local_chk_externref(wasm_exec_env_t exec_env, int32 index, uintptr_t externref)
/* clang-format off */
static NativeSymbol native_symbols[] = {
{ "native-cmp-externref", local_cmp_externref, "(II)i", NULL },
{ "native-chk-externref", local_chk_externref, "(iI)i", NULL },
{ "native-cmp-externref", local_cmp_externref, "(rr)i", NULL },
{ "native-chk-externref", local_chk_externref, "(ir)i", NULL },
};
/* clang-format on */