diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-02-14 14:08:54 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-02-14 14:08:54 (GMT) |
commit | bbe63069efa759c946d9db8b7b77fea9a5591f4e (patch) | |
tree | 416c5b745537ff400eff39c1c3c9acdde2707e37 /Modules | |
parent | 66f575b359f8a29963483d60776bafcb9a2dfd7f (diff) | |
download | cpython-bbe63069efa759c946d9db8b7b77fea9a5591f4e.zip cpython-bbe63069efa759c946d9db8b7b77fea9a5591f4e.tar.gz cpython-bbe63069efa759c946d9db8b7b77fea9a5591f4e.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 e396716..9c30a14 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -2211,14 +2211,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); |