Commit ff0d875a authored by Serhiy Storchaka's avatar Serhiy Storchaka

array.buffer_info() should return a length as int, not long, for compatibility.

parent 919345d2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment