diff options
| author | Tomasz Dąbrowski <[email protected]> | 2017-08-25 14:18:31 +0200 |
|---|---|---|
| committer | Tomasz Dąbrowski <[email protected]> | 2017-08-25 14:18:31 +0200 |
| commit | 5d9b84ef40413bb48230d7f93a0a0c4a208efef2 (patch) | |
| tree | beb94a66829925e06da5f84cfc41e237cc0562eb | |
| parent | 78b13b3955afae412739e5dd347ed2fc444ceacd (diff) | |
| download | mruby-5d9b84ef40413bb48230d7f93a0a0c4a208efef2.tar.gz mruby-5d9b84ef40413bb48230d7f93a0a0c4a208efef2.zip | |
fix fmt_fp.c(329) : warning C4244: 'return' : conversion from 'ptrdiff_t' to 'int', possible loss of data
| -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 53b74e445..0a8b22b41 100644 --- a/src/fmt_fp.c +++ b/src/fmt_fp.c @@ -326,7 +326,7 @@ fmt_fp(struct fmt_args *f, long double y, ptrdiff_t p, uint8_t fl, int t) pad(f, ' ', 0, pl+l, fl^LEFT_ADJ); - return pl+l; + return (int)pl+(int)l; } static int |
