summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/value.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/value.cc b/src/value.cc
index 03984fd8..3a8d1f14 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -1284,7 +1284,10 @@ void value_t::print(std::ostream& out,
break;
case AMOUNT:
- as_amount().right_justify(out, first_width);
+ if (as_amount().is_zero())
+ out << 0L;
+ else
+ as_amount().right_justify(out, first_width);
break;
case STRING: