From b2a16d6bf720356738ae46a5dabbb1661dc7234d Mon Sep 17 00:00:00 2001 From: Tomasz Dąbrowski Date: Fri, 25 Aug 2017 14:12:08 +0200 Subject: fix fmt_fp.c(206) : warning C4244: 'initializing' : conversion from 'ptrdiff_t' to 'int', possible loss of data --- src/fmt_fp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmt_fp.c b/src/fmt_fp.c index 739211206..2c8b14d2f 100644 --- a/src/fmt_fp.c +++ b/src/fmt_fp.c @@ -203,7 +203,7 @@ fmt_fp(struct fmt_args *f, long double y, ptrdiff_t p, uint8_t fl, int t) } while (e2<0) { uint32_t carry=0, *b; - int sh=MIN(9,-e2), need=1+(p+LDBL_MANT_DIG/3+8)/9; + int sh=MIN(9,-e2), need=1+((int)p+LDBL_MANT_DIG/3+8)/9; for (d=a; d>sh) + carry; -- cgit v1.2.3