From 8993e78ee65e99d6a34ab1541f7d11163768611f 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 241654b..a34f3cb 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()) })