Mercurial > cpython-lru_cache-weakref
diff Objects/memoryobject.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 | 3292cc222d5c |
| children | fc5d02ae52dd |
line wrap: on
line diff
--- a/Objects/memoryobject.c Fri Dec 03 19:59:41 2010 +0000 +++ b/Objects/memoryobject.c Fri Dec 03 20:14:31 2010 +0000 @@ -599,7 +599,7 @@ else if (PySlice_Check(key)) { Py_ssize_t start, stop, step, slicelength; - if (PySlice_GetIndicesEx((PySliceObject*)key, get_shape0(view), + if (PySlice_GetIndicesEx(key, get_shape0(view), &start, &stop, &step, &slicelength) < 0) { return NULL; } @@ -678,7 +678,7 @@ else if (PySlice_Check(key)) { Py_ssize_t stop, step; - if (PySlice_GetIndicesEx((PySliceObject*)key, get_shape0(view), + if (PySlice_GetIndicesEx(key, get_shape0(view), &start, &stop, &step, &len) < 0) { return -1; }
