summaryrefslogtreecommitdiffhomepage
path: root/src/fmt_fp.c
diff options
context:
space:
mode:
authorTomasz Dąbrowski <[email protected]>2017-08-25 14:10:24 +0200
committerTomasz Dąbrowski <[email protected]>2017-08-25 14:10:24 +0200
commit5d099e40e6b8d7432053453ac93ab12aa9bb3411 (patch)
treea7a9a5d2b0273d863b48901327f3ed274d472622 /src/fmt_fp.c
parent63f10a1ee59743c086afc339f25da4f6e100e765 (diff)
downloadmruby-5d099e40e6b8d7432053453ac93ab12aa9bb3411.tar.gz
mruby-5d099e40e6b8d7432053453ac93ab12aa9bb3411.zip
fix fmt_fp.c(123) : warning C4244: 'return' : conversion from 'ptrdiff_t' to 'int', possible loss of data
Diffstat (limited to 'src/fmt_fp.c')
-rw-r--r--src/fmt_fp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmt_fp.c b/src/fmt_fp.c
index 6966cfef8..e44788242 100644
--- a/src/fmt_fp.c
+++ b/src/fmt_fp.c
@@ -120,7 +120,7 @@ fmt_fp(struct fmt_args *f, long double y, ptrdiff_t p, uint8_t fl, int t)
out(f, prefix, pl);
out(f, ss, 3);
pad(f, ' ', 0, 3+pl, fl^LEFT_ADJ);
- return 3+pl;
+ return 3+(int)pl;
}
y = frexp((double)y, &e2) * 2;