Change the type of PySliceIndices::slicelength and the length parameter of PySlice::indices().
PySliceIndices::slicelength
length
PySlice::indices()