Skip to content

Commit

Permalink
fix bug in Executor::visit_table_copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Jan 31, 2023
1 parent 43bcba8 commit e795b37
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/wasmi/src/engine/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,9 +751,7 @@ impl<'ctx, 'engine, 'func> Executor<'ctx, 'engine, 'func> {
let src = self.cache.get_table(self.ctx, src);
if Table::eq(&dst, &src) {
// Copy within the same table:
let table = self
.ctx
.resolve_table_mut(&self.cache.get_table(self.ctx, TableIdx::default()));
let table = self.ctx.resolve_table_mut(&dst);
table.copy_within(dst_index, src_index, len)?;
} else {
// Copy from one table to another table:
Expand Down

0 comments on commit e795b37

Please sign in to comment.