diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-07 04:27:04 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-07 04:27:04 -0400 |
commit | 682544ef17cdf96cde684d5601c6145132624f22 (patch) | |
tree | a2b4dedf13d1f8ad026c9ad0d8a20335e64972fa /src/op.cc | |
parent | eb98e0da8b095634ae779b5b1f3c234d24cccde2 (diff) | |
download | fork-ledger-682544ef17cdf96cde684d5601c6145132624f22.tar.gz fork-ledger-682544ef17cdf96cde684d5601c6145132624f22.tar.bz2 fork-ledger-682544ef17cdf96cde684d5601c6145132624f22.zip |
Refer to empty expression operators as simply NULL.
Diffstat (limited to 'src/op.cc')
-rw-r--r-- | src/op.cc | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |