mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
sys.long_info attributes should be ints, not longs
This commit is contained in:
parent
d3f03fa715
commit
48e3fd240f
2 changed files with 9 additions and 5 deletions
|
@ -3736,8 +3736,10 @@ PyLong_GetInfo(void)
|
|||
long_info = PyStructSequence_New(&Long_InfoType);
|
||||
if (long_info == NULL)
|
||||
return NULL;
|
||||
PyStructSequence_SET_ITEM(long_info, field++, PyLong_FromLong(PyLong_SHIFT));
|
||||
PyStructSequence_SET_ITEM(long_info, field++, PyLong_FromLong(sizeof(digit)));
|
||||
PyStructSequence_SET_ITEM(long_info, field++,
|
||||
PyInt_FromLong(PyLong_SHIFT));
|
||||
PyStructSequence_SET_ITEM(long_info, field++,
|
||||
PyInt_FromLong(sizeof(digit)));
|
||||
if (PyErr_Occurred()) {
|
||||
Py_CLEAR(long_info);
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue