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 5de0264c..a2735d37 100644
--- a/amount.cc
+++ b/amount.cc
@@ -810,7 +810,7 @@ std::ostream& operator<<(std::ostream& _out, const amount_t& amt)
}
if (precision) {
- out << ((comm.flags() & COMMODITY_STYLE_EUROPEAN) ? ',' : '.');
+ out << ((comm.flags & COMMODITY_STYLE_EUROPEAN) ? ',' : '.');
std::ostringstream final;
final.width(precision);
@@ -828,8 +828,8 @@ std::ostream& operator<<(std::ostream& _out, const amount_t& amt)
if (i == len)
out << str;
- else if (i < comm.precision())
- out << std::string(str, 0, comm.precision());
+ else if (i < comm.precision)
+ out << std::string(str, 0, comm.precision);
else
out << std::string(str, 0, i);
}