summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-28 08:27:24 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-28 08:27:24 (GMT)
commit20b39b27d96b7c068f364ea79584feaa70fd15b6 (patch)
tree8a37818cb0163a3f5cab0e04d36223cdc190e0f5 /Objects/bytesobject.c
parent131caba074ae6d72dd795ca9a61f17c45c1a3349 (diff)
downloadcpython-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/bytesobject.c')
-rw-r--r--Objects/bytesobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 63d5a5c..4f2da4c 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -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();