From c1c3a9956a7bef38be100dcba0135f02a6b56a41 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 23 Dec 2018 05:55:56 +0100 Subject: [PATCH 1/1] [py] fix compilation warning in py-source --- python/ext/py-source.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.11.0