diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-08-06 09:44:48 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-08-06 09:44:48 (GMT) |
commit | 5e684339c23a6bcac8896a5d25549dbe9d7b8aa6 (patch) | |
tree | 81ba5cd34c6ab175e048c7807586cfd59467c9cb /Modules | |
parent | 5f5c15fa997bbdb88ddaaed93f8ee5420d09f543 (diff) | |
download | cpython-5e684339c23a6bcac8896a5d25549dbe9d7b8aa6.zip cpython-5e684339c23a6bcac8896a5d25549dbe9d7b8aa6.tar.gz cpython-5e684339c23a6bcac8896a5d25549dbe9d7b8aa6.tar.bz2 |
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.
........
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 5b37896..1602e48 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -798,7 +798,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; @@ -1090,7 +1090,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, |