diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-06-24 05:38:59 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-06-24 05:38:59 (GMT) |
commit | ff0d875ad13b3db856d632a57cfea48d32af75e0 (patch) | |
tree | 0b141585aa374958a95f951244f5c602f5ce0507 /Modules/arraymodule.c | |
parent | 919345d2181287a06192a9c06751fece4896ff9d (diff) | |
download | cpython-ff0d875ad13b3db856d632a57cfea48d32af75e0.zip cpython-ff0d875ad13b3db856d632a57cfea48d32af75e0.tar.gz cpython-ff0d875ad13b3db856d632a57cfea48d32af75e0.tar.bz2 |
array.buffer_info() should return a length as int, not long, for compatibility.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r-- | Modules/arraymodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 5350759..fcdd46a 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1080,7 +1080,7 @@ array_buffer_info(arrayobject *self, PyObject *unused) } PyTuple_SET_ITEM(retval, 0, v); - v = PyLong_FromSsize_t(Py_SIZE(self)); + v = PyInt_FromSsize_t(Py_SIZE(self)); if (v == NULL) { Py_DECREF(retval); return NULL; |