diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fmt_fp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmt_fp.c b/src/fmt_fp.c index 2c8b14d2f..37f7c7a4b 100644 --- a/src/fmt_fp.c +++ b/src/fmt_fp.c @@ -217,7 +217,7 @@ fmt_fp(struct fmt_args *f, long double y, ptrdiff_t p, uint8_t fl, int t) e2+=sh; } - if (a<z) for (i=10, e=9*(r-a); *a>=i; i*=10, e++); + if (a<z) for (i=10, e=9*(int)(r-a); *a>=i; i*=10, e++); else e=0; /* Perform rounding: j is precision after the radix (possibly neg) */ |
