diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-27 11:52:27 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-27 11:52:27 -0600 |
commit | 3ed09fc85b60e354906f881db1e2bbfa47331273 (patch) | |
tree | 2ee4890dbeea8133bb644a9735173baadba08f5a /src/xact.cc | |
parent | 5532a1a8b756f0f7499570afccb1d4fc3e9bc76d (diff) | |
download | fork-ledger-3ed09fc85b60e354906f881db1e2bbfa47331273.tar.gz fork-ledger-3ed09fc85b60e354906f881db1e2bbfa47331273.tar.bz2 fork-ledger-3ed09fc85b60e354906f881db1e2bbfa47331273.zip |
Optimizations
Diffstat (limited to 'src/xact.cc')
-rw-r--r-- | src/xact.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xact.cc b/src/xact.cc index ae571b62..b581db95 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -565,7 +565,6 @@ bool xact_t::valid() const } namespace { - bool post_pred(expr_t::ptr_op_t op, post_t& post) { switch (op->kind) { @@ -582,6 +581,9 @@ namespace { else break; + case expr_t::op_t::O_EQ: + return post_pred(op->left(), post) == post_pred(op->right(), post); + case expr_t::op_t::O_NOT: return ! post_pred(op->left(), post); @@ -604,8 +606,7 @@ namespace { throw_(calc_error, _("Unhandled operator")); return false; } - -} // unnamed namespace +} void auto_xact_t::extend_xact(xact_base_t& xact) { |