projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b4445fb
)
[py] fix compilation warning in py-source
author
Paul Brossier
<piem@piem.org>
Sun, 23 Dec 2018 04:55:56 +0000
(
05:55
+0100)
committer
Paul Brossier
<piem@piem.org>
Sun, 23 Dec 2018 04:55:56 +0000
(
05:55
+0100)
python/ext/py-source.c
patch
|
blob
|
history
diff --git
a/python/ext/py-source.c
b/python/ext/py-source.c
index
3ef4eb4
..
7e9d48b
100644
(file)
--- 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
// 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);
PyArray_Dims newdims;
PyObject *reshaped;
newdims.len = PyArray_NDIM(shortread);