OSDN Git Service

* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here
authorcorinna <corinna>
Mon, 15 Feb 2010 16:29:14 +0000 (16:29 +0000)
committercorinna <corinna>
Mon, 15 Feb 2010 16:29:14 +0000 (16:29 +0000)
as well.

newlib/ChangeLog
newlib/libc/stdio/vfwprintf.c

index 2ba3d3b..7729b2c 100644 (file)
@@ -1,5 +1,10 @@
 2010-02-15  Corinna Vinschen  <corinna@vinschen.de>
 
+       * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here
+       as well.
+
+2010-02-15  Corinna Vinschen  <corinna@vinschen.de>
+
        * libc/stdio/vfprintf.c (_VFPRINTF_R): Drop printing a redundant
        decimal point in case the float argument is an integral value.
 
index 9cf9c3e..d9b9d56 100644 (file)
@@ -1382,7 +1382,7 @@ number:                   if ((dprec = prec) >= 0)
                                                cp = convbuf + ndig;
                                        }
 #endif
-                                       if (prec || flags & ALT)
+                                       if (expt < ndig || flags & ALT)
                                            PRINT (&decimal_point, 1);
                                        PRINTANDPAD (cp, convbuf + ndig,
                                                     ndig - expt, zeroes);