Skip to content

Commit e795b37

Browse files
committed
fix bug in Executor::visit_table_copy
1 parent 43bcba8 commit e795b37

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/wasmi/src/engine/executor.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,9 +751,7 @@ impl<'ctx, 'engine, 'func> Executor<'ctx, 'engine, 'func> {
751751
let src = self.cache.get_table(self.ctx, src);
752752
if Table::eq(&dst, &src) {
753753
// Copy within the same table:
754-
let table = self
755-
.ctx
756-
.resolve_table_mut(&self.cache.get_table(self.ctx, TableIdx::default()));
754+
let table = self.ctx.resolve_table_mut(&dst);
757755
table.copy_within(dst_index, src_index, len)?;
758756
} else {
759757
// Copy from one table to another table:

0 commit comments

Comments
 (0)