cpython: b8fc4de84b9a (original) (raw)
Mercurial > cpython
changeset 106407:b8fc4de84b9a 3.6
Issue #27867: Silenced may-be-used-uninitialized warnings after using PySlice_GetIndicesEx() in debug builds. [#27867]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Sat, 04 Feb 2017 11:07:17 +0200 |
parents | f49b6c35d1e3(current diff)d7b637af5a7e(diff) |
children | af8315720e67 b60b46ad8751 |
files | |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-)[+] [-] Include/sliceobject.h 5 |
line wrap: on
line diff
--- a/Include/sliceobject.h +++ b/Include/sliceobject.h @@ -46,8 +46,9 @@ PyAPI_FUNC(int) PySlice_GetIndicesEx(PyO #if !defined(Py_LIMITED_API) || (Py_LIMITED_API+0 >= 0x03050400 && Py_LIMITED_API+0 < 0x03060000) || Py_LIMITED_API+0 >= 0x03060100 #define PySlice_GetIndicesEx(slice, length, start, stop, step, slicelen) ( [](#l1.6)
- PySlice_Unpack((slice), (start), (stop), (step)) < 0 ? -1 : [](#l1.7)
- ((*slicelen = PySlice_AdjustIndices((length), (start), (stop), *(step))), [](#l1.8)