History

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

Paul Brossier committed 9 years ago

Commit a6222fc1 parent 23f1c491 file · +2 −2Browse files

Showing the changes to python/ext/py-source.c (1 of 1 file). Show all

Unified · Split

python/ext/py-source.c+2−2
@@ -289,7 +289,7 @@ static PyObject* Pyaubio_source_iter(PyObject *self) { · 288 unmodified lines
289}289}
290 290
291static PyObject* Pyaubio_source_iter_next(Py_source *self) {291static PyObject* Pyaubio_source_iter_next(Py_source *self) {
292 PyObject *done;292 PyObject *done, *size;
293 if (self->channels == 1) {293 if (self->channels == 1) {
294 done = Py_source_do(self, NULL);294 done = Py_source_do(self, NULL);
295 } else {295 } else {
@@ -300,7 +300,7 @@ static PyObject* Pyaubio_source_iter_next(Py_source *self) { · 4 unmodified lines
300 "error when reading source: not opened?");300 "error when reading source: not opened?");
301 return NULL;301 return NULL;
302 }302 }
303 PyObject *size = PyTuple_GetItem(done, 1);303 size = PyTuple_GetItem(done, 1);
304 if (size != NULL && PyLong_Check(size)) {304 if (size != NULL && PyLong_Check(size)) {
305 if (PyLong_AsLong(size) == (long)self->hop_size) {305 if (PyLong_AsLong(size) == (long)self->hop_size) {
306 PyObject *vec = PyTuple_GetItem(done, 0);306 PyObject *vec = PyTuple_GetItem(done, 0);

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