author | Rich Felker <dalias@aerifal.cx> | 2014年04月07日 02:05:20 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014年04月07日 02:05:20 -0400 |
commit | 89740868c9f1c84b8ee528468d12df1fa72cd392 (patch) | |
tree | fb8252ea812c9700d650bf8bacc842efecec4f5d /src/stdio/vfprintf.c | |
parent | 109048e031f39fbb370211fde44ababf6c04c8fb (diff) | |
download | musl-89740868c9f1c84b8ee528468d12df1fa72cd392.tar.gz |
-rw-r--r-- | src/stdio/vfprintf.c | 2 |
diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c index bec63ecf..0be75498 100644 --- 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; - for (; !z[-1] && z>a; z--); } + for (; z>a && !z[-1]; z--); if ((t|32)=='g') { if (!p) p++; |