diff Modules/arraymodule.c @ 63766:6b28b88f6c4e 3.1

Merged revisions 83751-83752 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83751 | mark.dickinson | 2010-08-06 10:36:57 +0100 (Fri, 06 Aug 2010) | 1 line Issue #9526: Remove outdated casts to int that were preventing the array module from working correctly with arrays > 2GB. ........ r83752 | mark.dickinson | 2010-08-06 10:38:58 +0100 (Fri, 06 Aug 2010) | 1 line Misc/NEWS entry for r83751. ........
author Mark Dickinson <dickinsm@gmail.com>
date Fri, 06 Aug 2010 09:42:28 +0000
parents f197407bdba2
children 3c9232a684ae
line wrap: on
line diff
--- a/Modules/arraymodule.c	Fri Aug 06 06:13:25 2010 +0000
+++ b/Modules/arraymodule.c	Fri Aug 06 09:42:28 2010 +0000
@@ -794,7 +794,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;
@@ -1069,7 +1069,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,