Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.c @ 66664:62b61abd02b8
Merge branches/pep-0384.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Fri, 03 Dec 2010 20:14:31 +0000 |
| parents | 67882105dd65 |
| children | 48c40709417b |
line wrap: on
line diff
--- a/Modules/arraymodule.c Fri Dec 03 19:59:41 2010 +0000 +++ b/Modules/arraymodule.c Fri Dec 03 20:14:31 2010 +0000 @@ -2112,7 +2112,7 @@ arrayobject* ar; int itemsize = self->ob_descr->itemsize; - if (PySlice_GetIndicesEx((PySliceObject*)item, Py_SIZE(self), + if (PySlice_GetIndicesEx(item, Py_SIZE(self), &start, &stop, &step, &slicelength) < 0) { return NULL; } @@ -2183,7 +2183,7 @@ return (*self->ob_descr->setitem)(self, i, value); } else if (PySlice_Check(item)) { - if (PySlice_GetIndicesEx((PySliceObject *)item, + if (PySlice_GetIndicesEx(item, Py_SIZE(self), &start, &stop, &step, &slicelength) < 0) { return -1;
