Change WASM_ANYREF to WASM_EXTERNREF (#3426)
wasm-c-api wasm.h had changed WASM_ANYREF to WASM_EXTERNREF, we had better change it in WAMR also: https://github.com/WebAssembly/wasm-c-api/blob/2ce1367c9d1271c83fb63bef26d896a2f290cd23/include/wasm.h#L185
This commit is contained in:
@@ -93,7 +93,7 @@ wasm_get_externref(wasm_exec_env_t exec_env, wasm_module_inst_t inst,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (WASM_ANYREF != results[0].kind) {
|
||||
if (WASM_EXTERNREF != results[0].kind) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ wasm_cmp_externref(wasm_exec_env_t exec_env, wasm_module_inst_t inst,
|
||||
wasm_val_t results[1] = { 0 };
|
||||
wasm_val_t arguments[2] = {
|
||||
{ .kind = WASM_I32, .of.i32 = index },
|
||||
{ .kind = WASM_ANYREF, .of.foreign = externref },
|
||||
{ .kind = WASM_EXTERNREF, .of.foreign = externref },
|
||||
};
|
||||
|
||||
if (!exec_env || !wasm_cmp_externref_ptr || !ret_result) {
|
||||
|
||||
Reference in New Issue
Block a user