summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
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;
}
}