summaryrefslogtreecommitdiff
path: root/src/parser.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-22 18:53:44 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-22 18:53:44 -0400
commite95e8c3f792c8801f5e0c31a3a2234a0ccc553e9 (patch)
treed2acb79ef5cda3f9672f7ad9bb14af53c0549e6d /src/parser.cc
parent965df4a404f7c47b2cb5a61411538d8849a76508 (diff)
downloadfork-ledger-e95e8c3f792c8801f5e0c31a3a2234a0ccc553e9.tar.gz
fork-ledger-e95e8c3f792c8801f5e0c31a3a2234a0ccc553e9.tar.bz2
fork-ledger-e95e8c3f792c8801f5e0c31a3a2234a0ccc553e9.zip
Corrected a parse-time optimization of "! CONSTANT".
Diffstat (limited to 'src/parser.cc')
-rw-r--r--src/parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cc b/src/parser.cc
index d54d78cd..f47a76db 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -117,7 +117,7 @@ expr_t::parser_t::parse_unary_expr(std::istream& in,
// A very quick optimization
if (term->kind == op_t::VALUE) {
- term->as_value_lval().in_place_negate();
+ term->as_value_lval().in_place_not();
node = term;
} else {
node = new op_t(op_t::O_NOT);