summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-02-14 13:40:30 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-02-14 13:40:30 (GMT)
commitd5fdc069faeb7efc57584abe96010aba82cc83c8 (patch)
tree5f6d6c2802cf1efbac6f75fff05d0cb89cf066a9 /Modules
parentf0f6bd633217f04c5e64354b5640da98ed28540a (diff)
downloadcpython-d5fdc069faeb7efc57584abe96010aba82cc83c8.zip
cpython-d5fdc069faeb7efc57584abe96010aba82cc83c8.tar.gz
cpython-d5fdc069faeb7efc57584abe96010aba82cc83c8.tar.bz2
Silence more 'comparison between signed and unsigned' warnings.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/arraymodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index c631b61..ef6fb87 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -1804,14 +1804,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);