Parcourir la source

Fix mini-loader issue (#1383)

Xu Jun il y a 3 ans
Parent
commit
872cc51881
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      core/iwasm/interpreter/wasm_mini_loader.c

+ 1 - 1
core/iwasm/interpreter/wasm_mini_loader.c

@@ -6497,7 +6497,7 @@ re_scan:
                         break;
                     case WASM_OP_MEMORY_COPY:
                         /* both src and dst memory index should be 0 */
-                        bh_assert(*(int16 *)p != 0x0000);
+                        bh_assert(*(int16 *)p == 0x0000);
                         p += 2;
 
                         bh_assert(module->import_memory_count