summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-10-10 18:53:27 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-10-10 18:53:27 +0000
commit60fa58e847fd8368059e13e6d9b941fc0e75291b (patch)
tree42631fa16ccb3ed77a49497d8a6e43115c58831c /amount.cc
parent2835be562889c4e4dd11205533cca54ae02042e1 (diff)
downloadfork-ledger-60fa58e847fd8368059e13e6d9b941fc0e75291b.tar.gz
fork-ledger-60fa58e847fd8368059e13e6d9b941fc0e75291b.tar.bz2
fork-ledger-60fa58e847fd8368059e13e6d9b941fc0e75291b.zip
*** empty log message ***
Diffstat (limited to 'amount.cc')
-rw-r--r--amount.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/amount.cc b/amount.cc
index d7cf0d88..1f76d64f 100644
--- a/amount.cc
+++ b/amount.cc
@@ -547,16 +547,11 @@ static commodity * parse_amount(mpz_t out, const char * num,
if (saw_commodity) {
commodities_map_iterator item =
main_ledger->commodities.find(symbol.c_str());
- if (item == main_ledger->commodities.end()) {
+ if (item == main_ledger->commodities.end())
comm = new commodity(symbol, prefix, separate,
thousands, european, precision);
- } else {
+ else
comm = (*item).second;
-
- if (use_warnings && precision > comm->precision)
- std::cerr << "Warning: Use of higher precision than expected: "
- << value_str << std::endl;
- }
}
parse_number(out, value_str.c_str(), comm);