Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.c @ 58908:ef74764a6320 2.6
Merged revisions 78189 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78189 | mark.dickinson | 2010-02-14 13:40:30 +0000 (Sun, 14 Feb 2010) | 1 line
Silence more 'comparison between signed and unsigned' warnings.
........
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sun, 14 Feb 2010 14:00:19 +0000 |
| parents | 3ce860b9e732 |
| children | e38335d4df91 |
line wrap: on
line diff
--- a/Modules/arraymodule.c Sun Feb 14 13:40:45 2010 +0000 +++ b/Modules/arraymodule.c Sun Feb 14 14:00:19 2010 +0000 @@ -1806,14 +1806,14 @@ cur += step, i++) { Py_ssize_t lim = step - 1; - if (cur + step >= Py_SIZE(self)) + if (cur + step >= (size_t)Py_SIZE(self)) lim = Py_SIZE(self) - cur - 1; memmove(self->ob_item + (cur - i) * itemsize, self->ob_item + (cur + 1) * itemsize, lim * itemsize); } cur = start + slicelength * step; - if (cur < Py_SIZE(self)) { + if (cur < (size_t)Py_SIZE(self)) { memmove(self->ob_item + (cur-slicelength) * itemsize, self->ob_item + cur * itemsize, (Py_SIZE(self) - cur) * itemsize);
