History

[py] fix compilation warning in py-source

Paul Brossier committed 7 years ago

Commit c1c3a991 parent b4445fb1 file · +2 −2Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/ext/py-source.c+2−2
@@ -583,8 +583,8 @@ static PyObject* Pyaubio_source_iter_next(Py_source *self) { · 582 unmodified lines
583583 // short read, return a shorter array
584584 PyObject *vec = PyTuple_GetItem(done, 0);
585585 // 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);
588588 PyArray_Dims newdims;
589589 PyObject *reshaped;
590590 newdims.len = PyArray_NDIM(shortread);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t