From 9800e3febc456edcafbb172c6bef67526a8481da Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 16 Mar 2006 19:14:30 +0000 Subject: *** empty log message *** --- walk.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'walk.cc') diff --git a/walk.cc b/walk.cc index cfb9af28..8a60cfaa 100644 --- a/walk.cc +++ b/walk.cc @@ -42,7 +42,7 @@ void add_transaction_to(const transaction_t& xact, value_t& value) transaction_xdata_(xact).dflags & TRANSACTION_COMPOSITE) { value += transaction_xdata_(xact).composite_amount; } - else if (xact.cost || value) { + else if (xact.cost || ! value.realzero()) { value.add(xact.amount, xact.cost); } else { @@ -784,7 +784,7 @@ void sum_accounts(account_t& account) value_t result; compute_amount(result, details_t(account)); - if (result) + if (! result.realzero()) xdata.total += result; xdata.total_count += xdata.count; } -- cgit v1.2.3