projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66de549
)
Correctly cast the return value of realloc.
author
Martin v. Löwis
<martin@v.loewis.de>
Fri, 15 Sep 2000 07:32:39 +0000
(07:32 +0000)
committer
Martin v. Löwis
<martin@v.loewis.de>
Fri, 15 Sep 2000 07:32:39 +0000
(07:32 +0000)
Objects/tupleobject.c
patch
|
blob
|
history
diff --git
a/Objects/tupleobject.c
b/Objects/tupleobject.c
index 63d0ca75acedb59f3fcc9e749277ed1b62680d5b..9b15a0521526409b15c934526b7845a72f1937bc 100644
(file)
--- 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 = (Py
TupleObject
*)
+ g = (Py
GC_Head
*)
PyObject_REALLOC((char *)g, sizeof(PyTupleObject)
+ PyGC_HEAD_SIZE
+ newsize * sizeof(PyObject *));