From 6213dc5af8b365cde2495fddaa465b0427779d00 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 30 Jan 2009 19:28:16 -0400 Subject: Whitespace fix. --- src/commodity.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/commodity.cc') diff --git a/src/commodity.cc b/src/commodity.cc index d9e71ab3..5d993d9e 100644 --- a/src/commodity.cc +++ b/src/commodity.cc @@ -501,8 +501,8 @@ commodity_t::exchange(const amount_t& amount, breakdown.basis_cost = breakdown.final_cost; breakdown.amount = - amount_t(amount, annotation_t (per_unit_cost, moment ? - moment->date() : optional(), tag)); + amount_t(amount, annotation_t(per_unit_cost, moment ? + moment->date() : optional(), tag)); return breakdown; } @@ -633,6 +633,7 @@ void annotation_t::parse(std::istream& in) temp.parse(buf, amount_t::PARSE_NO_MIGRATE); temp.in_place_reduce(); +#ifdef INTEGER_MATH // Since this price will maintain its own precision, make sure // it is at least as large as the base commodity, since the user // may have only specified {$1} or something similar. @@ -640,6 +641,7 @@ void annotation_t::parse(std::istream& in) if (temp.has_commodity() && temp.precision() < temp.commodity().precision()) temp = temp.round(); // no need to retain individual precision +#endif price = temp; } -- cgit v1.2.3