mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48: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
|
@ -3403,7 +3403,7 @@ _PyBytes_Resize(PyObject **pv, Py_ssize_t newsize)
|
|||
_Py_DEC_REFTOTAL;
|
||||
_Py_ForgetReference(v);
|
||||
*pv = (PyObject *)
|
||||
PyObject_REALLOC((char *)v, PyBytesObject_SIZE + newsize);
|
||||
PyObject_REALLOC(v, PyBytesObject_SIZE + newsize);
|
||||
if (*pv == NULL) {
|
||||
PyObject_Del(v);
|
||||
PyErr_NoMemory();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue