summaryrefslogtreecommitdiff
path: root/oryxc/src/parser.rs
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2026-03-10 17:40:45 +0100
committerThomas Voss <mail@thomasvoss.com> 2026-03-10 17:40:45 +0100
commit2cb3026528aa963262b12fbd02d49f8bbc8e2ce8 (patch)
treeb5d44f5be48e9eec196778879392df492019bd6f /oryxc/src/parser.rs
parent773b5a8349af9776a1f96bd37bcec9263dd79a91 (diff)
Fix bug in arg count calculation
Diffstat (limited to 'oryxc/src/parser.rs')
-rw-r--r--oryxc/src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/oryxc/src/parser.rs b/oryxc/src/parser.rs
index 319beea..86d7b3d 100644
--- a/oryxc/src/parser.rs
+++ b/oryxc/src/parser.rs
@@ -574,7 +574,7 @@ impl<'a> Parser<'a> {
_ => p.scratch.len(),
};
- let nargs = rhs - lhs;
+ let nargs = (rhs - lhs) / 2;
let nrets = p.scratch.len() - rhs;
let argbeg = p.extra_data.len();
let retbeg = argbeg + nargs * 2 + 1;