diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-28 11:27:24 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-28 11:27:24 +0300 |
commit | 8cbd503f52fac32926312dd3476a4580dfbe6daa (patch) | |
tree | f0bdad374debc4ebcc452222a176deec293c56fa /Objects/longobject.c | |
parent | 9f6d459fbd1d32957566bc4ec51a988b35b6808d (diff) | |
download | cpython-8cbd503f52fac32926312dd3476a4580dfbe6daa.tar.gz |
Removed redundant casts to `char *`.
Corresponding functions now accept `const char *` (issue #1772673).
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 68dc85fa8f..bb2eb17a09 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -2312,7 +2312,7 @@ _PyLong_FromBytes(const char *s, Py_ssize_t len, int base) PyObject *result, *strobj; char *end = NULL; - result = PyLong_FromString((char*)s, &end, base); + result = PyLong_FromString(s, &end, base); if (end == NULL || (result != NULL && end == s + len)) return result; Py_XDECREF(result); |