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 christian.heimes
Recipients ajaksu2, christian.heimes, ezio.melotti, petri.lehtinen, pitrou, r.david.murray, serhiy.storchaka, tzimmo
Date 2012-10-30.12:58:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351601927.5.0.460976073556.issue2005@psf.upfronthosting.co.za>
In-reply-to
Content
AFAIK C89 doesn't specify integer overflows:

If an exceptional condition occurs during the evaluation of an expression (that is, if the result is not mathematically defined or not in the range of representable values for its type), the behavior is undefined.

With GCC and -fwrapv integer overflow work as you have expected. But other (and mostly older) compilers can fail.
History
Date User Action Args
2012-10-30 12:58:47christian.heimessetrecipients: + christian.heimes, pitrou, ajaksu2, ezio.melotti, r.david.murray, petri.lehtinen, serhiy.storchaka, tzimmo
2012-10-30 12:58:47christian.heimessetmessageid: <1351601927.5.0.460976073556.issue2005@psf.upfronthosting.co.za>
2012-10-30 12:58:47christian.heimeslinkissue2005 messages
2012-10-30 12:58:47christian.heimescreate