Skip to content

Commit

Permalink
fix a bug in under signature calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Dec 2, 2023
1 parent e782c48 commit 837a12f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1110,9 +1110,9 @@ impl Uiua {
instrs.extend(g_instrs);
instrs.extend(f_after);
let sig = Signature::new(
before_sig.args + g_sig.args + after_sig.args
- before_sig.outputs
- g_sig.outputs,
(before_sig.args + g_sig.args + after_sig.args)
.saturating_sub(before_sig.outputs + g_sig.outputs)
.max(before_sig.args),
(before_sig.outputs + g_sig.outputs)
.saturating_sub(g_sig.args + after_sig.args)
+ after_sig.outputs,
Expand Down

0 comments on commit 837a12f

Please sign in to comment.