From e30eef32b5d83bd4d31b8f30880ef6e0ba985bc6 Mon Sep 17 00:00:00 2001 From: Erin Date: Sun, 29 Aug 2021 00:07:26 +0200 Subject: [PATCH] Eval's integer representation is now its length - consistency with other types --- ablescript/src/variables.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ablescript/src/variables.rs b/ablescript/src/variables.rs index 7a5492ac..3a5b186b 100644 --- a/ablescript/src/variables.rs +++ b/ablescript/src/variables.rs @@ -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,