Skip to content

Commit

Permalink
fix InstanceCache bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop authored and graydon committed Jan 24, 2024
1 parent ab29800 commit 5ebc83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wasmi/src/engine/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl InstanceCache {
fn load_default_memory_bytes(&mut self, ctx: &mut StoreInner) -> &mut NonNull<[u8]> {
let memory = *self.default_memory(ctx);
self.default_memory_bytes
.insert(ctx.resolve_memory_mut(&memory).data().into())
.insert(ctx.resolve_memory_mut(&memory).data_mut().into())
}

/// Clears the cached default memory instance.
Expand Down

0 comments on commit 5ebc83b

Please sign in to comment.