fix fmt_fp.c(220) : warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data

This commit is contained in:
Tomasz Dąbrowski
2017-08-25 14:13:06 +02:00
parent b2a16d6bf7
commit bac37a9f1a
+1 -1
View File
@@ -217,7 +217,7 @@ fmt_fp(struct fmt_args *f, long double y, ptrdiff_t p, uint8_t fl, int t)
e2+=sh;
}
if (a<z) for (i=10, e=9*(r-a); *a>=i; i*=10, e++);
if (a<z) for (i=10, e=9*(int)(r-a); *a>=i; i*=10, e++);
else e=0;
/* Perform rounding: j is precision after the radix (possibly neg) */