diff --git a/src/compile/modifier.rs b/src/compile/modifier.rs index 943967f38..16e2536ce 100644 --- a/src/compile/modifier.rs +++ b/src/compile/modifier.rs @@ -568,13 +568,13 @@ impl Compiler { }, ); } - if sig.outputs > 2 { + if sig.args > 2 { instrs.push(Instr::PushTemp { stack: TempStack::Inline, - count: sig.outputs - 2, + count: sig.args - 2, span, }); - for _ in 0..sig.outputs - 2 { + for _ in 0..sig.args - 2 { instrs.push(Instr::Prim(Flip, span)); instrs.push(Instr::PopTemp { stack: TempStack::Inline,