Showing the changes to python/ext (1 of 1 file). Show all
Unified · Split
| @@ -583,8 +583,8 @@ static PyObject* Pyaubio_source_iter_next(Py_source *self) { · 582 unmodified lines | |||
| 583 | // short read, return a shorter array | 583 | // short read, return a shorter array |
| 584 | PyObject *vec = PyTuple_GetItem(done, 0); | 584 | PyObject *vec = PyTuple_GetItem(done, 0); |
| 585 | // take a copy to prevent resizing internal arrays | 585 | // take a copy to prevent resizing internal arrays |
| 586 | PyArrayObject *shortread = PyArray_FROM_OTF(vec, NPY_NOTYPE, | 586 | PyArrayObject *shortread = (PyArrayObject*)PyArray_FROM_OTF(vec, |
| 587 | NPY_ARRAY_ENSURECOPY); | 587 | NPY_NOTYPE, NPY_ARRAY_ENSURECOPY); |
| 588 | PyArray_Dims newdims; | 588 | PyArray_Dims newdims; |
| 589 | PyObject *reshaped; | 589 | PyObject *reshaped; |
| 590 | newdims.len = PyArray_NDIM(shortread); | 590 | newdims.len = PyArray_NDIM(shortread); |