mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
Removed redundant casts to char *
.
Corresponding functions now accept `const char *` (issue #1772673).
This commit is contained in:
parent
131caba074
commit
20b39b27d9
10 changed files with 17 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue