From 3cd760425f166edac753a6c3cfacbece17638490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 15 Sep 2000 07:32:39 +0000 Subject: Correctly cast the return value of realloc. --- Objects/tupleobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 63d0ca7..9b15a05 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 *)); -- cgit v0.12