diff Objects/tupleobject.c @ 14584:89ce480963f9 legacy-trunk

Correctly cast the return value of realloc.
author Martin v. Löwis <martin@v.loewis.de>
date Fri, 15 Sep 2000 07:32:39 +0000
parents 6435cc47fcc6
children c7d46eae95d8
line wrap: on
line diff
--- a/Objects/tupleobject.c	Fri Sep 15 07:31:57 2000 +0000
+++ b/Objects/tupleobject.c	Fri Sep 15 07:32:39 2000 +0000
@@ -503,7 +503,7 @@
 #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 *));