Eval's integer representation is now its length

- consistency with other types
pull/2/head
ondra05 2021-08-29 00:07:26 +02:00
parent b315a8414a
commit d509a986e6
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ impl Value {
tape_len,
} => (instructions.len() + tape_len) as _,
Functio::AbleFunctio { params, body } => (params.len() + body.len()) as _,
Functio::Eval(s) => s.parse().unwrap_or(consts::ANSWER),
Functio::Eval(s) => s.len() as _,
},
Value::Int(i) => i,
Value::Nul => consts::ANSWER,