From e95e8c3f792c8801f5e0c31a3a2234a0ccc553e9 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 22 Jan 2009 18:53:44 -0400 Subject: Corrected a parse-time optimization of "! CONSTANT". --- src/parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.cc') 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); -- cgit v1.2.3