sys.long_info attributes should be ints, not longs
diff --git a/Objects/longobject.c b/Objects/longobject.c
index c172b0f..dd22ce0 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -3736,8 +3736,10 @@
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;