diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-02-14 14:00:19 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-02-14 14:00:19 (GMT) |
commit | 79e1f8a32819e6b9b84b467f4158a5d31c9af923 (patch) | |
tree | f548526d89f95d7b546c895b7767b05e03bc7ce2 /Modules | |
parent | 2fe3b3d4beefa1818e4f16901b839cd05304bdca (diff) | |
download | cpython-79e1f8a32819e6b9b84b467f4158a5d31c9af923.zip cpython-79e1f8a32819e6b9b84b467f4158a5d31c9af923.tar.gz cpython-79e1f8a32819e6b9b84b467f4158a5d31c9af923.tar.bz2 |
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.
........
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/arraymodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 3b493d5..e11a598 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1806,14 +1806,14 @@ array_ass_subscr(arrayobject* self, PyObject* item, PyObject* value) 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); |