From 2cb3026528aa963262b12fbd02d49f8bbc8e2ce8 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 10 Mar 2026 17:40:45 +0100 Subject: Fix bug in arg count calculation --- oryxc/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oryxc/src/parser.rs') 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; -- cgit v1.2.3