summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/audioop.c4
-rw-r--r--Objects/frameobject.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/Modules/audioop.c b/Modules/audioop.c
index c6d9df5..50a899e 100644
--- a/Modules/audioop.c
+++ b/Modules/audioop.c
@@ -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) {
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();
}