summaryrefslogtreecommitdiff
path: root/type_logic.c
diff options
context:
space:
mode:
Diffstat (limited to 'type_logic.c')
-rw-r--r--type_logic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/type_logic.c b/type_logic.c
index d126d7b..ba356c0 100644
--- a/type_logic.c
+++ b/type_logic.c
@@ -61,7 +61,7 @@ static PyObject *srd_logic_iternext(PyObject *self)
/* Prepare the next samplenum/sample list in this iteration. */
py_samplenum =
- PyLong_FromUnsignedLongLong(logic->start_samplenum +
+ PyLong_FromUnsignedLongLong(logic->abs_start_samplenum +
logic->itercnt);
PyList_SetItem(logic->sample, 0, py_samplenum);
py_samples = PyBytes_FromStringAndSize((const char *)logic->di->channel_samples,