Changed Built-in functio -> integer coercion

This commit is contained in:
Erin 2022-02-13 00:37:17 +01:00 committed by ondra05
parent 56c9ccdf38
commit b84b86eef7

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()