Commit b2c3ca1e authored by Mark Dickinson's avatar Mark Dickinson

Silence MSVC warning about unary minus applied to unsigned type.

parent d3571c8d
......@@ -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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment