mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
wasm_interp: fix bug in position of locals block
This commit is contained in:
parent
b87cb69d94
commit
6beac8d56a
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ impl<'a, I: ImportDispatcher> Instance<'a, I> {
|
|||
|
||||
self.blocks.push(Block {
|
||||
ty: BlockType::Locals(fn_index),
|
||||
vstack: self.value_stack.depth(),
|
||||
vstack: self.value_stack.depth() - n_args,
|
||||
});
|
||||
let body_block_index = self.blocks.len();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue