Fix mini-loader issue (#1383)

This commit is contained in:
Xu Jun
2022-08-12 16:35:57 +08:00
committed by GitHub
parent b65befd5e7
commit 872cc51881

View File

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