aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.rs')
-rw-r--r--src/compiler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index f36d717..7732992 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -153,7 +153,7 @@ impl Compiler {
Token::Not => Op::Not,
_ => self.error("Invalid unary operator"),
};
- self.value(block);
+ self.parse_precedence(block, Prec::Factor);
block.add(op, self.line());
}