diff options
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/filters.cc b/src/filters.cc index bfa85a42..47dec09b 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -367,7 +367,11 @@ void changed_value_xacts::output_diff(const date_t& date) value_t cur_bal; last_xact->xdata().date = date; +#ifdef INTEGER_MATH cur_bal = total_expr.calc(*last_xact).round(); +#else + cur_bal = total_expr.calc(*last_xact); +#endif if (value_t diff = cur_bal - last_balance) { entry_temps.push_back(entry_t()); @@ -390,7 +394,11 @@ void changed_value_xacts::operator()(xact_t& xact) item_handler<xact_t>::operator()(xact); +#ifdef INTEGER_MATH last_balance = total_expr.calc(xact).round(); +#else + last_balance = total_expr.calc(xact); +#endif last_xact = &xact; } |