Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13197f4

Browse files
committed
Merged revisions 83751-83752 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 5d8cd24 commit 13197f4

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,10 @@ Library
392392
Extension Modules
393393
-----------------
394394

395+
- Issue #9526: Remove some outdated (int) casts that were preventing
396+
the array module from working correctly with arrays of more than
397+
2**31 elements.
398+
395399
- Fix memory leak in ssl._ssl._test_decode_cert.
396400

397401
- Issue #8065: Fix memory leak in readline module (from failure to

Modules/arraymodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ array_iter_extend(arrayobject *self, PyObject *bb)
794794
return -1;
795795

796796
while ((v = PyIter_Next(it)) != NULL) {
797-
if (ins1(self, (int) Py_SIZE(self), v) != 0) {
797+
if (ins1(self, Py_SIZE(self), v) != 0) {
798798
Py_DECREF(v);
799799
Py_DECREF(it);
800800
return -1;
@@ -1069,7 +1069,7 @@ the buffer length in bytes.");
10691069
static PyObject *
10701070
array_append(arrayobject *self, PyObject *v)
10711071
{
1072-
return ins(self, (int) Py_SIZE(self), v);
1072+
return ins(self, Py_SIZE(self), v);
10731073
}
10741074

10751075
PyDoc_STRVAR(append_doc,

0 commit comments

Comments
 (0)