author | Rich Felker <dalias@aerifal.cx> | 2014年12月18日 17:41:34 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014年12月18日 17:41:34 -0500 |
commit | 0f859fc99325bbb25d506b28565e4a7385ffe0e6 (patch) | |
tree | a069484f168c2667b8dca5c2231023a15be87a4c /src/stdio/vfprintf.c | |
parent | 2e1ae3b6b9331383ba5eaa7cb47373a8bea073d1 (diff) | |
download | musl-0f859fc99325bbb25d506b28565e4a7385ffe0e6.tar.gz |
-rw-r--r-- | src/stdio/vfprintf.c | 2 |
diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c index d421817c..2ecf7692 100644 --- a/src/stdio/vfprintf.c +++ b/src/stdio/vfprintf.c @@ -225,7 +225,7 @@ static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t) if (!isfinite(y)) { char *s = (t&32)?"inf":"INF"; - if (y!=y) s=(t&32)?"nan":"NAN", pl=0; + if (y!=y) s=(t&32)?"nan":"NAN"; pad(f, ' ', w, 3+pl, fl&~ZERO_PAD); out(f, prefix, pl); out(f, s, 3); |