forked from AbleScript/ablescript
Use b-string instead of array of b-chars
This commit is contained in:
parent
66ceb8f8c6
commit
8993e78ee6
|
@ -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())
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue