diff options
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r-- | Modules/arraymodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 4791890..e396716 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -2199,8 +2199,9 @@ array_ass_subscr(arrayobject* self, PyObject* item, PyObject* value) } else if (needed == 0) { /* Delete slice */ - Py_ssize_t cur, i; - + size_t cur; + Py_ssize_t i; + if (step < 0) { stop = start + 1; start = stop + step * (slicelength - 1) - 1; |