Changed Built-in functio -> integer coercion
This commit is contained in:
parent
56c9ccdf38
commit
b84b86eef7
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue