X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fvfprintf.c;h=116e1cedba4be72c83dcb319d01848c6aec247a7;hb=9799560f79d37fb53d821b2f0b591a6ff260ebc3;hp=481436dfea2aae0014bf945683da853cdd44ff35;hpb=63d40196b91df8937424cfa4495e8991c5a20827;p=musl diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c index 481436df..116e1ced 100644 --- a/src/stdio/vfprintf.c +++ b/src/stdio/vfprintf.c @@ -296,7 +296,7 @@ static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t) e2-=sh; } while (e2<0) { - uint32_t carry=0, *z2; + uint32_t carry=0, *b; int sh=MIN(9,-e2); for (d=a; d 2+p/9) z = b+2+p/9; e2+=sh; } @@ -319,7 +319,7 @@ static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t) if (j < 9*(z-r-1)) { uint32_t x; /* We avoid C's broken division of negative numbers */ - d = r + 1 + (j+9*LDBL_MAX_EXP)/9 - LDBL_MAX_EXP; + d = r + 1 + ((j+9*LDBL_MAX_EXP)/9 - LDBL_MAX_EXP); j += 9*LDBL_MAX_EXP; j %= 9; for (i=10, j++; j<9; i*=10, j++);