shithub: aubio

Download patch

ref: c1c3a9956a7bef38be100dcba0135f02a6b56a41
parent: b4445fb25f9c4bc904a4782f9ad8a4fa1afd2b79
author: Paul Brossier <piem@piem.org>
date: Sun Dec 23 00:55:56 EST 2018

[py] fix compilation warning in py-source

--- a/python/ext/py-source.c
+++ b/python/ext/py-source.c
@@ -583,8 +583,8 @@
       // 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);