shithub: aubio

Download patch

ref: a6222fcdefa4aa0fdfc1fa35748a698454ced1cb
parent: 23f1c490891edf52d289f4332fb02eb847cc9bbe
author: Paul Brossier <piem@piem.org>
date: Sun Feb 26 20:24:46 EST 2017

python/ext/py-source.c: statement after definitions

--- a/python/ext/py-source.c
+++ b/python/ext/py-source.c
@@ -289,7 +289,7 @@
 }
 
 static PyObject* Pyaubio_source_iter_next(Py_source *self) {
-  PyObject *done;
+  PyObject *done, *size;
   if (self->channels == 1) {
     done = Py_source_do(self, NULL);
   } else {
@@ -300,7 +300,7 @@
         "error when reading source: not opened?");
     return NULL;
   }
-  PyObject *size = PyTuple_GetItem(done, 1);
+  size = PyTuple_GetItem(done, 1);
   if (size != NULL && PyLong_Check(size)) {
     if (PyLong_AsLong(size) == (long)self->hop_size) {
       PyObject *vec = PyTuple_GetItem(done, 0);