From b84b86eef7eb535271ef13a3cac244b121a911ca Mon Sep 17 00:00:00 2001 From: Erin Date: Sun, 13 Feb 2022 00:37:17 +0100 Subject: [PATCH] Changed Built-in functio -> integer coercion --- ablescript/src/variables.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ablescript/src/variables.rs b/ablescript/src/variables.rs index 60487dfe..805c54ef 100644 --- a/ablescript/src/variables.rs +++ b/ablescript/src/variables.rs @@ -184,7 +184,7 @@ impl Value { .sum::() + body.len() as i32 } - Functio::Builtin(b) => b.fn_addr() as _, + Functio::Builtin(b) => (b.fn_addr() + b.arity) as _, Functio::Chain { functios, kind } => { let (lf, rf) = *functios; Value::Functio(lf).into_i32()