author | Rich Felker <dalias@aerifal.cx> | 2018年08月23日 15:24:03 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018年08月23日 15:24:03 -0400 |
commit | cfa0a54c082d41db6446638eed1d57f163434092 (patch) | |
tree | 91f68ffa2487046482925443e7abe39b8388a4da /src/stdio | |
parent | 6aeb131b4c1aee30d7f7125a8a88ce6f41172f01 (diff) | |
download | musl-cfa0a54c082d41db6446638eed1d57f163434092.tar.gz |
-rw-r--r-- | src/stdio/vfprintf.c | 1 |
diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c index 50fb55c1..5e7be717 100644 --- a/src/stdio/vfprintf.c +++ b/src/stdio/vfprintf.c @@ -220,6 +220,7 @@ static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t) else re=LDBL_MANT_DIG/4-1-p; if (re) { + round *= 1<<(LDBL_MANT_DIG%4); while (re--) round*=16; if (*prefix=='-') { y=-y; |