Skip to content

Commit 080cb87

Browse files
committed
fix a bug in but
1 parent 235d769 commit 080cb87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compile/modifier.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,13 +568,13 @@ impl Compiler {
568568
},
569569
);
570570
}
571-
if sig.outputs > 2 {
571+
if sig.args > 2 {
572572
instrs.push(Instr::PushTemp {
573573
stack: TempStack::Inline,
574-
count: sig.outputs - 2,
574+
count: sig.args - 2,
575575
span,
576576
});
577-
for _ in 0..sig.outputs - 2 {
577+
for _ in 0..sig.args - 2 {
578578
instrs.push(Instr::Prim(Flip, span));
579579
instrs.push(Instr::PopTemp {
580580
stack: TempStack::Inline,

0 commit comments

Comments
 (0)