[Python-checkins] r83751 - python/branches/py3k/Modules/arraymodule.c
mark.dickinson
python-checkins at python.org
Fri Aug 6 11:36:57 CEST 2010
Author: mark.dickinson
Date: Fri Aug 6 11:36:57 2010
New Revision: 83751
Log:
Issue #9526: Remove outdated casts to int that were preventing the array module from working correctly with arrays > 2GB.
Modified:
python/branches/py3k/Modules/arraymodule.c
Modified: python/branches/py3k/Modules/arraymodule.c
==============================================================================
--- python/branches/py3k/Modules/arraymodule.c (original)
+++ python/branches/py3k/Modules/arraymodule.c Fri Aug 6 11:36:57 2010
@@ -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,
More information about the Python-checkins
mailing list