diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-28 08:27:24 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-28 08:27:24 (GMT) |
commit | 20b39b27d96b7c068f364ea79584feaa70fd15b6 (patch) | |
tree | 8a37818cb0163a3f5cab0e04d36223cdc190e0f5 /Objects/floatobject.c | |
parent | 131caba074ae6d72dd795ca9a61f17c45c1a3349 (diff) | |
download | cpython-20b39b27d96b7c068f364ea79584feaa70fd15b6.zip cpython-20b39b27d96b7c068f364ea79584feaa70fd15b6.tar.gz cpython-20b39b27d96b7c068f364ea79584feaa70fd15b6.tar.bz2 |
Removed redundant casts to `char *`.
Corresponding functions now accept `const char *` (issue #1772673).
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 05b7679..dceb55e 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -2026,7 +2026,7 @@ _PyFloat_Pack4(double x, unsigned char *p, int le) } else { float y = (float)x; - const char *s = (char*)&y; + const unsigned char *s = (unsigned char*)&y; int i, incr = 1; if (Py_IS_INFINITY(y) && !Py_IS_INFINITY(x)) @@ -2162,7 +2162,7 @@ _PyFloat_Pack8(double x, unsigned char *p, int le) return -1; } else { - const char *s = (char*)&x; + const unsigned char *s = (unsigned char*)&x; int i, incr = 1; if ((double_format == ieee_little_endian_format && !le) |