From: Mark Dickinson Date: Mon, 16 Nov 2009 17:34:11 +0000 (+0000) Subject: Merged revisions 76330 via svnmerge from X-Git-Tag: v2.6.5rc1~349 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9e16245acf699680c8e26752333bab18f07dc04;p=thirdparty%2FPython%2Fcpython.git Merged revisions 76330 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r76330 | mark.dickinson | 2009-11-16 17:33:25 +0000 (Mon, 16 Nov 2009) | 1 line Silence MSVC warning about unary minus applied to unsigned type. ........ --- diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 0fee40f6841f..f45b7717d656 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -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; }