summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;