diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-30 19:28:16 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-30 19:28:53 -0400 |
commit | 6213dc5af8b365cde2495fddaa465b0427779d00 (patch) | |
tree | 8d2f2c88e9931608f1605b98dddb6b25f939d4ac /src/commodity.cc | |
parent | 676e7bcf4fd9e2130c2f2ab62656a858bfd4bd0d (diff) | |
download | fork-ledger-6213dc5af8b365cde2495fddaa465b0427779d00.tar.gz fork-ledger-6213dc5af8b365cde2495fddaa465b0427779d00.tar.bz2 fork-ledger-6213dc5af8b365cde2495fddaa465b0427779d00.zip |
Whitespace fix.
Diffstat (limited to 'src/commodity.cc')
-rw-r--r-- | src/commodity.cc | 6 |
1 files changed, 4 insertions, 2 deletions
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<date_t>(), tag)); + amount_t(amount, annotation_t(per_unit_cost, moment ? + moment->date() : optional<date_t>(), 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; } |