diff options
Diffstat (limited to 'Objects/structseq.c')
-rw-r--r-- | Objects/structseq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c index 50448c2..7ad607b 100644 --- a/Objects/structseq.c +++ b/Objects/structseq.c @@ -75,7 +75,7 @@ structseq_slice(PyStructSequence *obj, int low, int high) for(i = low; i < high; ++i) { PyObject *v = obj->ob_item[i]; Py_INCREF(v); - PyTuple_SET_ITEM(np, i, v); + PyTuple_SET_ITEM(np, i-low, v); } return (PyObject *) np; } |