diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2000-09-15 07:32:39 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2000-09-15 07:32:39 (GMT) |
commit | 3cd760425f166edac753a6c3cfacbece17638490 (patch) | |
tree | 27bf762b4d3580a7e9e29f1d4b7ea6b9c1adef0d /Objects/tupleobject.c | |
parent | 66de5497c56542324ae67187447fd367592fcb7c (diff) | |
download | cpython-3cd760425f166edac753a6c3cfacbece17638490.zip cpython-3cd760425f166edac753a6c3cfacbece17638490.tar.gz cpython-3cd760425f166edac753a6c3cfacbece17638490.tar.bz2 |
Correctly cast the return value of realloc.
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r-- | Objects/tupleobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 *)); |