[uClibc-cvs] uClibc/libc/stdio printf.c,1.46,1.47
Manuel Novoa III
mjn3 at uclibc.org
Mon Sep 1 09:45:47 UTC 2003
Update of /var/cvs/uClibc/libc/stdio
In directory winder:/tmp/cvs-serv5529/libc/stdio
Modified Files:
printf.c
Log Message:
Fix precision bug for %g conversion specifier when using %f style.
Index: printf.c
===================================================================
RCS file: /var/cvs/uClibc/libc/stdio/printf.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- printf.c 1 Aug 2003 20:08:53 -0000 1.46
+++ printf.c 1 Sep 2003 09:45:44 -0000 1.47
@@ -69,6 +69,9 @@
* Floating point output now works for *wprintf.
* Support for glibc locale-specific digit grouping for floats.
* Misc bug fixes.
+ *
+ * Aug 31, 2003
+ * Fix precision bug for %g conversion specifier when using %f style.
*/
/* TODO:
@@ -77,9 +80,6 @@
* strings in the current locale? ANSI/ISO C99 seems to imply this
* and Plauger's printf implementation in his Standard C Library book
* treats this as an error.
- *
- * Implement %a, %A, and locale-specific grouping for the printf floating
- * point conversions. To be done in the rewrite of _dtostr().
*/
@@ -2110,6 +2110,7 @@
if ((mode == 'g') && ((o_exp >= -4) && (o_exp <= round))) {
mode = 'f';
+ preci = round - o_exp;
}
exp = o_exp;
More information about the uClibc-cvs
mailing list