summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/seq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/seq.c b/src/seq.c
index 22e5ec5da..5ad5fad94 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -336,6 +336,8 @@ get_default_format (operand first, operand step, operand last)
last_width--; /* don't include space for '.' */
if (last.precision == 0 && prec)
last_width++; /* include space for '.' */
+ if (first.precision == 0 && prec)
+ first_width++; /* include space for '.' */
size_t width = MAX (first_width, last_width);
if (width <= INT_MAX)
{