Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newlib/libc/stdio/vfprintf.c2
1 files changed, 1 insertions, 1 deletions
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);