This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients benjamin.peterson, serhiy.storchaka, vstinner
Date 2013-11-18.09:14:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384766055.62.0.133518488825.issue19617@psf.upfronthosting.co.za>
In-reply-to
Content
> You could use the Py_SAFE_DOWNCAST macro everywhere.

I prefer to store sizes in a size type (Py_ssize_t), and only downcast where it is really needed, in compiler_addop_i(). So in the future, if someone wants to support values larger than INT_MAX, only one function need to be changed.
History
Date User Action Args
2013-11-18 09:14:15vstinnersetrecipients: + vstinner, benjamin.peterson, serhiy.storchaka
2013-11-18 09:14:15vstinnersetmessageid: <1384766055.62.0.133518488825.issue19617@psf.upfronthosting.co.za>
2013-11-18 09:14:15vstinnerlinkissue19617 messages
2013-11-18 09:14:15vstinnercreate