Skip to content

Commit

Permalink
fix a bug in but
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jun 12, 2024
1 parent 235d769 commit 080cb87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compile/modifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 080cb87

Please sign in to comment.