From 3095ad06505d5b0606a2b1d96a624ba0d9db921e Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Thu, 30 Jun 2005 00:02:26 +0000 Subject: [PATCH] Apparently some compiler gives a warning on float y = x; when x is a double. Go figure. --- Objects/floatobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/floatobject.c b/Objects/floatobject.c index c95b5c9edbf3..d02e053c8d42 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -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; -- 2.47.3