Changed Built-in functio -> integer coercion

This commit is contained in:
Erin 2022-02-13 00:37:17 +01:00 committed by ondra05
parent a9a9cc71e1
commit 5b320259f6

View file

@ -184,7 +184,7 @@ impl Value {
.sum::<i32>() .sum::<i32>()
+ body.len() as 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 } => { Functio::Chain { functios, kind } => {
let (lf, rf) = *functios; let (lf, rf) = *functios;
Value::Functio(lf).into_i32() Value::Functio(lf).into_i32()