From 682544ef17cdf96cde684d5601c6145132624f22 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 7 Feb 2009 04:27:04 -0400 Subject: Refer to empty expression operators as simply NULL. --- src/op.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/op.cc') diff --git a/src/op.cc b/src/op.cc index e989f365..7f44ac16 100644 --- a/src/op.cc +++ b/src/op.cc @@ -60,8 +60,7 @@ expr_t::ptr_op_t expr_t::op_t::compile(scope_t& scope) ptr_op_t lhs(left()->compile(scope)); ptr_op_t rhs(kind > UNARY_OPERATORS && has_right() ? - (kind == O_LOOKUP ? right() : right()->compile(scope)) : - ptr_op_t()); + (kind == O_LOOKUP ? right() : right()->compile(scope)) : NULL); if (lhs == left() && (! rhs || rhs == right())) return this; -- cgit v1.2.3