Fix compile error when multi-module and tags are enabled (#3781)

This commit is contained in:
Benbuck Nason 2024-09-09 18:55:15 -07:00 committed by GitHub
parent f453d9d5ce
commit c276aca202
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2474,7 +2474,8 @@ wasm_loader_resolve_tag(const char *module_name, const char *tag_name,
}
/* check function type */
if (!wasm_type_equal(expected_tag_type, tag->tag_type)) {
if (!wasm_type_equal(expected_tag_type, tag->tag_type, module->types,
module->type_count)) {
LOG_DEBUG("%s.%s failed the type check", module_name, tag_name);
set_error_buf(error_buf, error_buf_size, "incompatible import type");
return NULL;