summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-19 21:10:51 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 05:48:44 -0400
commit86a6af697433cd81fa842e6340a0ae2d8cb459a0 (patch)
tree5e09346d6f299c31b4206922d15b845a580f3762 /amount.cc
parent80c472733baf078ac275c02adf0bafff82803464 (diff)
downloadfork-ledger-86a6af697433cd81fa842e6340a0ae2d8cb459a0.tar.gz
fork-ledger-86a6af697433cd81fa842e6340a0ae2d8cb459a0.tar.bz2
fork-ledger-86a6af697433cd81fa842e6340a0ae2d8cb459a0.zip
*** no comment ***
Diffstat (limited to 'amount.cc')
-rw-r--r--amount.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/amount.cc b/amount.cc
index c22e229b..4662dbad 100644
--- a/amount.cc
+++ b/amount.cc
@@ -835,13 +835,13 @@ std::ostream& operator<<(std::ostream& _out, const amount_t& amt)
std::string ender;
if (i == len)
ender = str;
- else if (i < comm.precision())
- ender = std::string(str, 0, comm.precision());
+ else if (i < comm.precision)
+ ender = std::string(str, 0, comm.precision);
else
ender = std::string(str, 0, i);
if (! ender.empty()) {
- out << ((comm.flags() & COMMODITY_STYLE_EUROPEAN) ? ',' : '.');
+ out << ((comm.flags & COMMODITY_STYLE_EUROPEAN) ? ',' : '.');
out << ender;
}
}