diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-04-02 18:39:37 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-04-02 18:39:37 (GMT) |
commit | 48e3fd240fc6338fbcbbc9c1c8a7d118faca924a (patch) | |
tree | 3e8d7be04be6eec29fbc21c2d6210692e291278d /Objects | |
parent | d3f03fa715f9f82ab512a444f8452ac5e5c87d3a (diff) | |
download | cpython-48e3fd240fc6338fbcbbc9c1c8a7d118faca924a.zip cpython-48e3fd240fc6338fbcbbc9c1c8a7d118faca924a.tar.gz cpython-48e3fd240fc6338fbcbbc9c1c8a7d118faca924a.tar.bz2 |
sys.long_info attributes should be ints, not longs
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/longobject.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ 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; |