summaryrefslogtreecommitdiff
path: root/Modules/arraymodule.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-08-06 09:36:57 +0000
committerMark Dickinson <dickinsm@gmail.com>2010-08-06 09:36:57 +0000
commit346f0af4f686176f985de8e2cfd38d28b6fc6ab5 (patch)
tree5aac6a9cfb0bd9cc4cd8b0edac15b63be8780cca /Modules/arraymodule.c
parent373e78c6f51f028373aca51fc70dd5b48159e5ce (diff)
downloadcpython-git-346f0af4f686176f985de8e2cfd38d28b6fc6ab5.tar.gz
Issue #9526: Remove outdated casts to int that were preventing the array module from working correctly with arrays > 2GB.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r--Modules/arraymodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index 2729a771c1..548f303675 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -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,