summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/floatobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index c95b5c9..d02e053 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;