diff options
| author | Tomasz Dąbrowski <[email protected]> | 2017-08-25 14:13:06 +0200 |
|---|---|---|
| committer | Tomasz Dąbrowski <[email protected]> | 2017-08-25 14:13:06 +0200 |
| commit | bac37a9f1aa7fa6e16884c6172fffdeeebacfe90 (patch) | |
| tree | 5f38bcb621a6333d51ba51b617fd10c05de31be6 /src/fmt_fp.c | |
| parent | b2a16d6bf720356738ae46a5dabbb1661dc7234d (diff) | |
| download | mruby-bac37a9f1aa7fa6e16884c6172fffdeeebacfe90.tar.gz mruby-bac37a9f1aa7fa6e16884c6172fffdeeebacfe90.zip | |
fix fmt_fp.c(220) : warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data
Diffstat (limited to 'src/fmt_fp.c')
| -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) */ |
