about summary refs log tree commit diff
path: root/users/tazjin/rlox/src
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/rlox/src')
-rw-r--r--users/tazjin/rlox/src/bytecode/compiler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/tazjin/rlox/src/bytecode/compiler.rs b/users/tazjin/rlox/src/bytecode/compiler.rs
index ca56bfe7cf50..4c6a99a181c6 100644
--- a/users/tazjin/rlox/src/bytecode/compiler.rs
+++ b/users/tazjin/rlox/src/bytecode/compiler.rs
@@ -166,7 +166,7 @@ impl<T: Iterator<Item = Token>> Compiler<T> {
 
         // Compile the right operand
         let rule: ParseRule<T> = rule_for(&operator);
-        self.parse_precedence(rule.precedence)?;
+        self.parse_precedence(rule.precedence.next())?;
 
         // Emit operator instruction
         match operator {