diff options
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index e896aba..156316b 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -2335,6 +2335,8 @@ parse_format_flags(const char *f, f--; } } + if (width < precision) + width = precision; if (*f == '\0') { /* bogus format "%.1" => go backward, f points to "1" */ f--; |