diff options
| author | Tomasz Dąbrowski <[email protected]> | 2017-08-25 14:14:17 +0200 |
|---|---|---|
| committer | Tomasz Dąbrowski <[email protected]> | 2017-08-25 14:14:17 +0200 |
| commit | ef6a762d41f40e1580e94a7e8e5a23df7af4d6a4 (patch) | |
| tree | c121e70f35243ba08b69a1dc8b5a1317c3dbc77a /src/fmt_fp.c | |
| parent | bac37a9f1aa7fa6e16884c6172fffdeeebacfe90 (diff) | |
| download | mruby-ef6a762d41f40e1580e94a7e8e5a23df7af4d6a4.tar.gz mruby-ef6a762d41f40e1580e94a7e8e5a23df7af4d6a4.zip | |
fix fmt_fp.c(224) : warning C4244: '=' : conversion from 'ptrdiff_t' 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 37f7c7a4b..bfaec05c9 100644 --- a/src/fmt_fp.c +++ b/src/fmt_fp.c @@ -221,7 +221,7 @@ fmt_fp(struct fmt_args *f, long double y, ptrdiff_t p, uint8_t fl, int t) else e=0; /* Perform rounding: j is precision after the radix (possibly neg) */ - j = p - ((t|32)!='f')*e - ((t|32)=='g' && p); + j = (int)p - ((t|32)!='f')*e - ((t|32)=='g' && p); if (j < 9*(z-r-1)) { uint32_t x; /* We avoid C's broken division of negative numbers */ |
