summaryrefslogtreecommitdiff
path: root/reconcile.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-24 09:02:47 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-24 09:02:47 -0400
commit643f2d33cf24bbae4a13acfbfc6af5fe8439f905 (patch)
treec694588e1b4bd03b0903764975fce65f15aba51c /reconcile.cc
parent7409b050bee226fb7bb0b89a10d9c206d8797d70 (diff)
downloadledger-643f2d33cf24bbae4a13acfbfc6af5fe8439f905.tar.gz
ledger-643f2d33cf24bbae4a13acfbfc6af5fe8439f905.tar.bz2
ledger-643f2d33cf24bbae4a13acfbfc6af5fe8439f905.zip
More work toward getting the textual parser working again. Since this means
that value expressions must work, there are a lot of details involved.
Diffstat (limited to 'reconcile.cc')
-rw-r--r--reconcile.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/reconcile.cc b/reconcile.cc
index b92ff9f1..8a1be816 100644
--- a/reconcile.cc
+++ b/reconcile.cc
@@ -64,8 +64,8 @@ void reconcile_transactions::flush()
cleared_balance.cast(value_t::AMOUNT);
balance.cast(value_t::AMOUNT);
- commodity_t& cb_comm = cleared_balance.as_amount_lval().commodity();
- commodity_t& b_comm = balance.as_amount_lval().commodity();
+ commodity_t& cb_comm = cleared_balance.as_amount().commodity();
+ commodity_t& b_comm = balance.as_amount().commodity();
balance -= cleared_balance;
if (balance.type() >= value_t::BALANCE)
@@ -76,7 +76,7 @@ void reconcile_transactions::flush()
// then assume an exact match and return the results right away.
amount_t& to_reconcile(balance.as_amount_lval());
pending_balance.cast(value_t::AMOUNT);
- if (to_reconcile == pending_balance.as_amount_lval() ||
+ if (to_reconcile == pending_balance.as_amount() ||
search_for_balance(to_reconcile, &first, first)) {
push_to_handler(first);
} else {