Przeglądaj źródła

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

Benbuck Nason 1 rok temu
rodzic
commit
c276aca202
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      core/iwasm/interpreter/wasm_loader.c

+ 2 - 1
core/iwasm/interpreter/wasm_loader.c

@@ -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;