diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-11-16 17:34:11 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-11-16 17:34:11 (GMT) |
commit | b9e16245acf699680c8e26752333bab18f07dc04 (patch) | |
tree | 6eb6ef8bba92c512166f33301360068c1d866c63 /Objects | |
parent | 21f6d3e9b0959c8bb5a1e054fd595eb2ea180659 (diff) | |
download | cpython-b9e16245acf699680c8e26752333bab18f07dc04.zip cpython-b9e16245acf699680c8e26752333bab18f07dc04.tar.gz cpython-b9e16245acf699680c8e26752333bab18f07dc04.tar.bz2 |
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.
........
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/rangeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 0fee40f..f45b771 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; } |