From: Paul Brossier Date: Sun, 23 Dec 2018 04:55:56 +0000 (+0100) Subject: [py] fix compilation warning in py-source X-Git-Tag: 0.4.9~11 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=c1c3a9956a7bef38be100dcba0135f02a6b56a41;p=aubio.git [py] fix compilation warning in py-source --- diff --git a/python/ext/py-source.c b/python/ext/py-source.c index 3ef4eb40..7e9d48b0 100644 --- a/python/ext/py-source.c +++ b/python/ext/py-source.c @@ -583,8 +583,8 @@ static PyObject* Pyaubio_source_iter_next(Py_source *self) { // short read, return a shorter array PyObject *vec = PyTuple_GetItem(done, 0); // take a copy to prevent resizing internal arrays - PyArrayObject *shortread = PyArray_FROM_OTF(vec, NPY_NOTYPE, - NPY_ARRAY_ENSURECOPY); + PyArrayObject *shortread = (PyArrayObject*)PyArray_FROM_OTF(vec, + NPY_NOTYPE, NPY_ARRAY_ENSURECOPY); PyArray_Dims newdims; PyObject *reshaped; newdims.len = PyArray_NDIM(shortread);