Skip to content

Commit c276aca

Browse files
authored
Fix compile error when multi-module and tags are enabled (#3781)
1 parent f453d9d commit c276aca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/iwasm/interpreter/wasm_loader.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2474,7 +2474,8 @@ wasm_loader_resolve_tag(const char *module_name, const char *tag_name,
24742474
}
24752475

24762476
/* check function type */
2477-
if (!wasm_type_equal(expected_tag_type, tag->tag_type)) {
2477+
if (!wasm_type_equal(expected_tag_type, tag->tag_type, module->types,
2478+
module->type_count)) {
24782479
LOG_DEBUG("%s.%s failed the type check", module_name, tag_name);
24792480
set_error_buf(error_buf, error_buf_size, "incompatible import type");
24802481
return NULL;

0 commit comments

Comments
 (0)