diff Modules/arraymodule.c @ 63764:f806fb3d1f27

Issue #9526: Remove outdated casts to int that were preventing the array module from working correctly with arrays > 2GB.
author Mark Dickinson <dickinsm@gmail.com>
date Fri, 06 Aug 2010 09:36:57 +0000
parents cab14be0ada1
children fa8b57f987c5
line wrap: on
line diff
--- a/Modules/arraymodule.c	Fri Aug 06 09:22:46 2010 +0000
+++ b/Modules/arraymodule.c	Fri Aug 06 09:36:57 2010 +0000
@@ -800,7 +800,7 @@
         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 @@
 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,