mirror of https://github.com/python/cpython
Correctly cast the return value of realloc.
This commit is contained in:
parent
66de5497c5
commit
3cd760425f
|
@ -503,7 +503,7 @@ _PyTuple_Resize(PyObject **pv, int newsize, int last_is_sticky)
|
||||||
#ifdef WITH_CYCLE_GC
|
#ifdef WITH_CYCLE_GC
|
||||||
PyGC_Head *g = PyObject_AS_GC((PyObject *)v);
|
PyGC_Head *g = PyObject_AS_GC((PyObject *)v);
|
||||||
PyObject_GC_Fini((PyObject *)v);
|
PyObject_GC_Fini((PyObject *)v);
|
||||||
g = (PyTupleObject *)
|
g = (PyGC_Head *)
|
||||||
PyObject_REALLOC((char *)g, sizeof(PyTupleObject)
|
PyObject_REALLOC((char *)g, sizeof(PyTupleObject)
|
||||||
+ PyGC_HEAD_SIZE
|
+ PyGC_HEAD_SIZE
|
||||||
+ newsize * sizeof(PyObject *));
|
+ newsize * sizeof(PyObject *));
|
||||||
|
|
Loading…
Reference in New Issue