summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/base/cprintf_formats.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base/cprintf_formats.hh b/src/base/cprintf_formats.hh
index 5b3b34432..253fe59cf 100644
--- a/src/base/cprintf_formats.hh
+++ b/src/base/cprintf_formats.hh
@@ -151,6 +151,9 @@ _format_float(std::ostream &out, const T &data, Format &fmt)
ios::fmtflags flags(out.flags());
+ if (fmt.fill_zero)
+ out.fill('0');
+
switch (fmt.float_format) {
case Format::scientific:
if (fmt.precision != -1) {