diff options
author | Michael W. Hudson <mwh@python.net> | 2005-06-30 00:02:26 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2005-06-30 00:02:26 (GMT) |
commit | 3095ad06505d5b0606a2b1d96a624ba0d9db921e (patch) | |
tree | 3b13936e9f87df23e7b4552eb330051fdf6f4167 | |
parent | 3296e696db4e46f63f7a5348ac977b2b0a32ecbc (diff) | |
download | cpython-3095ad06505d5b0606a2b1d96a624ba0d9db921e.zip cpython-3095ad06505d5b0606a2b1d96a624ba0d9db921e.tar.gz cpython-3095ad06505d5b0606a2b1d96a624ba0d9db921e.tar.bz2 |
Apparently some compiler gives a warning on
float y = x;
when x is a double. Go figure.
-rw-r--r-- | Objects/floatobject.c | 2 |
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; |