summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-31 20:32:13 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-31 20:32:13 (GMT)
commit6345ac6d61f637f0e5977a4dd37d88de18b4bdb9 (patch)
treeab1d954b4b819fb6f125cb351ea584efca4b0e86 /Objects
parent197346fafe41332b896999b5bbdc7b1dabe57262 (diff)
downloadcpython-6345ac6d61f637f0e5977a4dd37d88de18b4bdb9.zip
cpython-6345ac6d61f637f0e5977a4dd37d88de18b4bdb9.tar.gz
cpython-6345ac6d61f637f0e5977a4dd37d88de18b4bdb9.tar.bz2
Add cast to realloc/malloc call to shut up AIX compiler. (Vladimir Marangozov)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/frameobject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 295b613..03f54dd 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -182,8 +182,9 @@ PyFrame_New(tstate, code, globals, locals)
f = free_list;
free_list = free_list->f_back;
if (f->f_nlocals + f->f_stacksize < extras) {
- f = realloc(f, sizeof(PyFrameObject) +
- extras*sizeof(PyObject *));
+ f = (PyFrameObject *)
+ realloc(f, sizeof(PyFrameObject) +
+ extras*sizeof(PyObject *));
if (f == NULL)
return (PyFrameObject *)PyErr_NoMemory();
}