Apparently some compiler gives a warning on

float y = x;

when x is a double.  Go figure.
This commit is contained in:
Michael W. Hudson 2005-06-30 00:02:26 +00:00
parent 3296e696db
commit 3095ad0650

View file

@ -1427,7 +1427,7 @@ _PyFloat_Pack4(double x, unsigned char *p, int le)
return -1;
}
else {
float y = x;
float y = (float)x;
const char *s = (char*)&y;
int i, incr = 1;