From: Paul Brossier Date: Mon, 27 Feb 2017 00:24:46 +0000 (+0100) Subject: python/ext/py-source.c: statement after definitions X-Git-Tag: 0.4.5~84 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=a6222fcdefa4aa0fdfc1fa35748a698454ced1cb;p=aubio.git python/ext/py-source.c: statement after definitions --- diff --git a/python/ext/py-source.c b/python/ext/py-source.c index 82247fd9..d7dbe70c 100644 --- a/python/ext/py-source.c +++ b/python/ext/py-source.c @@ -289,7 +289,7 @@ static PyObject* Pyaubio_source_iter(PyObject *self) { } 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 @@ static PyObject* Pyaubio_source_iter_next(Py_source *self) { "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);