projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix failure of printf %g to strip trailing zeros in some cases
[musl]
/
src
/
stdio
/
vfprintf.c
diff --git
a/src/stdio/vfprintf.c
b/src/stdio/vfprintf.c
index
bec63ec
..
0be7549
100644
(file)
--- a/
src/stdio/vfprintf.c
+++ b/
src/stdio/vfprintf.c
@@
-363,8
+363,8
@@
static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t)
}
}
if (z>d+1) z=d+1;
}
}
if (z>d+1) z=d+1;
- for (; !z[-1] && z>a; z--);
}
}
+ for (; z>a && !z[-1]; z--);
if ((t|32)=='g') {
if (!p) p++;
if ((t|32)=='g') {
if (!p) p++;