Skip to content

Commit

Permalink
Fix InstanceCache bug (#904)
Browse files Browse the repository at this point in the history
fix InstanceCache bug
  • Loading branch information
Robbepop authored Jan 24, 2024
1 parent 3fd0cc2 commit 0218dfc
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 @@ -203,7 +203,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 0218dfc

Please sign in to comment.