mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Silence MSVC warning about unary minus applied to unsigned type.
This commit is contained in:
parent
d3571c8d59
commit
b2c3ca1e38
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ range_reverse(PyObject *seq)
|
|||
calculation is also done modulo ULONG_MAX+1.
|
||||
*/
|
||||
it->start = (long)(start + (unsigned long)(len-1) * step);
|
||||
it->step = (long)(-(unsigned long)step);
|
||||
it->step = (long)(0UL-step);
|
||||
|
||||
return (PyObject *)it;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue