From: Martin v. Löwis Date: Fri, 15 Sep 2000 07:32:39 +0000 (+0000) Subject: Correctly cast the return value of realloc. X-Git-Tag: v2.0b2~301 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3cd760425f166edac753a6c3cfacbece17638490;p=thirdparty%2FPython%2Fcpython.git Correctly cast the return value of realloc. --- diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 63d0ca75aced..9b15a0521526 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -503,7 +503,7 @@ _PyTuple_Resize(PyObject **pv, int newsize, int last_is_sticky) #ifdef WITH_CYCLE_GC PyGC_Head *g = PyObject_AS_GC((PyObject *)v); PyObject_GC_Fini((PyObject *)v); - g = (PyTupleObject *) + g = (PyGC_Head *) PyObject_REALLOC((char *)g, sizeof(PyTupleObject) + PyGC_HEAD_SIZE + newsize * sizeof(PyObject *));