X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fvfprintf.c;h=116e1cedba4be72c83dcb319d01848c6aec247a7;hb=e6129e6d836e5f4725d9b14ba7457b32e24adc61;hp=a3bf18dd8c6d4f4b1ef0702239664b74ca33e874;hpb=914949d321448bd2189bdcbce794dbae2c8ed16e;p=musl diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c index a3bf18dd..116e1ced 100644 --- a/src/stdio/vfprintf.c +++ b/src/stdio/vfprintf.c @@ -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++);