diff options
Diffstat (limited to 'newlib/libc/stdio/vfprintf.c')
-rw-r--r-- | newlib/libc/stdio/vfprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index be4170cc2..be35d248c 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -1578,7 +1578,7 @@ number: if ((dprec = prec) >= 0) cp = convbuf + ndig; } #endif - if (prec || flags & ALT) + if (expt < ndig || flags & ALT) PRINT (decimal_point, decp_len); PRINTANDPAD (cp, convbuf + ndig, ndig - expt, zeroes); |