Add cast to realloc/malloc call to shut up AIX compiler. (Vladimir Marangozov)
This commit is contained in:
parent
197346fafe
commit
6345ac6d61
|
@ -998,8 +998,8 @@ audioop_ratecv(self, args)
|
|||
inrate /= d;
|
||||
outrate /= d;
|
||||
|
||||
prev_i = malloc(nchannels * sizeof(int));
|
||||
cur_i = malloc(nchannels * sizeof(int));
|
||||
prev_i = (int *) malloc(nchannels * sizeof(int));
|
||||
cur_i = (int *) malloc(nchannels * sizeof(int));
|
||||
len /= size * nchannels; /* # of frames */
|
||||
|
||||
if (state == Py_None) {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue