Showing the changes to python (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 | 583 | // short read, return a shorter array |
| 584 | 584 | PyObject *vec = PyTuple_GetItem(done, 0); |
| 585 | 585 | // take a copy to prevent resizing internal arrays |
| 586 | − PyArrayObject *shortread = PyArray_FROM_OTF(vec, NPY_NOTYPE, | |
| 587 | − NPY_ARRAY_ENSURECOPY); | |
| 586 | + PyArrayObject *shortread = (PyArrayObject*)PyArray_FROM_OTF(vec, | |
| 587 | + NPY_NOTYPE, NPY_ARRAY_ENSURECOPY); | |
| 588 | 588 | PyArray_Dims newdims; |
| 589 | 589 | PyObject *reshaped; |
| 590 | 590 | newdims.len = PyArray_NDIM(shortread); |