| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,8 +46,9 @@ PyAPI_FUNC(int) PySlice_GetIndicesEx(PyObject *r, Py_ssize_t length, | |||
| 46 | 46 | ||
| 47 | 47 | #if !defined(Py_LIMITED_API) || (Py_LIMITED_API+0 >= 0x03050400 && Py_LIMITED_API+0 < 0x03060000) || Py_LIMITED_API+0 >= 0x03060100 | |
| 48 | 48 | #define PySlice_GetIndicesEx(slice, length, start, stop, step, slicelen) ( \ | |
| 49 | - PySlice_Unpack((slice), (start), (stop), (step)) < 0 ? -1 : \ | ||
| 50 | - ((*slicelen = PySlice_AdjustIndices((length), (start), (stop), *(step))), \ | ||
| 49 | + PySlice_Unpack((slice), (start), (stop), (step)) < 0 ? \ | ||
| 50 | + ((*(slicelen) = 0), -1) : \ | ||
| 51 | + ((*(slicelen) = PySlice_AdjustIndices((length), (start), (stop), *(step))), \ | ||
| 51 | 52 | 0)) | |
| 52 | 53 | PyAPI_FUNC(int) PySlice_Unpack(PyObject *slice, | |
| 53 | 54 | Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments