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

This commit is contained in:
Tomasz Dąbrowski
2017-08-25 14:18:05 +02:00
parent ef6a762d41
commit 78b13b3955
+1 -1
View File
@@ -248,7 +248,7 @@ fmt_fp(struct fmt_args *f, long double y, ptrdiff_t p, uint8_t fl, int t)
if (d<a) *--a=0;
(*d)++;
}
for (i=10, e=9*(r-a); *a>=i; i*=10, e++);
for (i=10, e=9*(int)(r-a); *a>=i; i*=10, e++);
}
}
if (z>d+1) z=d+1;