Changed Built-in functio -> integer coercion

pull/3/head
ondra05 2022-02-13 00:37:17 +01:00
parent 84f519a2e5
commit a46b9ea910
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ impl Value {
.sum::<i32>()
+ 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()