From 3cdca1666adbabe0d6ba77a65bf72b555721220f Mon Sep 17 00:00:00 2001 From: Alex Bethel Date: Wed, 8 Dec 2021 14:39:04 -0700 Subject: [PATCH] Use b-string instead of array of b-chars --- 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 241654b5..a34f3cba 100644 --- a/ablescript/src/variables.rs +++ b/ablescript/src/variables.rs @@ -208,7 +208,7 @@ impl Value { Value::Str(s) => Functio::Eval(s), Value::Int(i) => Functio::BfFunctio { instructions: { - let instruction_mappings = [b'[', b']', b'+', b'-', b',', b'.', b'<', b'>']; + let instruction_mappings = b"[]+-,.<>"; std::iter::successors(Some(i as usize), |i| { Some(i / instruction_mappings.len()) })