diff --git a/lox/bf.lox b/lox/bf.lox index cb6deab..bb9281b 100644 --- a/lox/bf.lox +++ b/lox/bf.lox @@ -71,7 +71,7 @@ class Interpreter { } - if (instruction == "[" and tape.current.data < 0.0001) { + if (instruction == "[" and tape.current.data = 0) { instruction = read(this.bfpath); var bracketCount = 1; while (bracketCount > 0 and instruction != nil) { @@ -81,7 +81,7 @@ class Interpreter { } } - if (instruction == "]" and tape.current.data >= 0.0001) { + if (instruction == "]" and tape.current.data != 0) { instruction = read(this.bfpath, true); var bracketCount = 1; while (bracketCount > 0 and instruction != nil) {