diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index 72df0f28a..0e40a3e8f 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -1235,7 +1235,7 @@ number: if ((dprec = prec) >= 0) } } else if (expt <= 0) { PRINT ("0", 1); - if(expt || ndig) { + if(expt || ndig || (flags & ALT)) { PRINT (decimal_point, 1); PAD (-expt, zeroes); PRINT (cp, ndig);