X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstdio%2Fvfprintf.c;h=4a2752b275834d76786bc6af95b238f92831e37b;hb=f1b23d41cff432a8d0939af427fa005b4a4f95d7;hp=6525938f20584ff5c334a23a1cafc0cd36ce62f3;hpb=400c5e5c8307a2ebe44ef1f203f5a15669f20347;p=musl diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c index 6525938f..4a2752b2 100644 --- a/src/stdio/vfprintf.c +++ b/src/stdio/vfprintf.c @@ -200,7 +200,7 @@ static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t) char ebuf0[3*sizeof(int)], *ebuf=&ebuf0[3*sizeof(int)], *estr; pl=1; - if (y<0 || 1/y<0) { + if (signbit(y)) { y=-y; } else if (fl & MARK_POS) { prefix+=3;