fix fmt_fp.c(123) : warning C4244: 'return' : conversion from 'ptrdiff_t' to 'int', possible loss of data

This commit is contained in:
Tomasz Dąbrowski
2017-08-25 14:10:24 +02:00
parent 63f10a1ee5
commit 5d099e40e6
+1 -1
View File
@@ -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;