]> granicus.if.org Git - python/commitdiff
Issue #9526: Remove outdated casts to int that were preventing the array module...
authorMark Dickinson <dickinsm@gmail.com>
Fri, 6 Aug 2010 09:36:57 +0000 (09:36 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Fri, 6 Aug 2010 09:36:57 +0000 (09:36 +0000)
Modules/arraymodule.c

index 2729a771c1ec33a2762e4f6bfd729bf21d24d777..548f30367558b17201e33e7fa8564ee1c486aa61 100644 (file)
@@ -800,7 +800,7 @@ array_iter_extend(arrayobject *self, PyObject *bb)
         return -1;
 
     while ((v = PyIter_Next(it)) != NULL) {
-        if (ins1(self, (int) Py_SIZE(self), v) != 0) {
+        if (ins1(self, Py_SIZE(self), v) != 0) {
             Py_DECREF(v);
             Py_DECREF(it);
             return -1;
@@ -1075,7 +1075,7 @@ the buffer length in bytes.");
 static PyObject *
 array_append(arrayobject *self, PyObject *v)
 {
-    return ins(self, (int) Py_SIZE(self), v);
+    return ins(self, Py_SIZE(self), v);
 }
 
 PyDoc_STRVAR(append_doc,