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 tim.peters
Recipients Windson Yang, mark.dickinson, serhiy.storchaka, sir-sigurd, tim.peters
Date 2018-09-22.03:57:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537588656.09.0.956365154283.issue34397@psf.upfronthosting.co.za>
In-reply-to
Content
Because the behavior of signed integer overflow isn't defined in C.  Picture a 3-bit integer type, where the maximum value of the signed integer type is 3.  3+3 has no defined result.  Cast them to the unsigned flavor of the integer type, though, and the result is defined to be 6.
History
Date User Action Args
2018-09-22 03:57:36tim.peterssetrecipients: + tim.peters, mark.dickinson, serhiy.storchaka, sir-sigurd, Windson Yang
2018-09-22 03:57:36tim.peterssetmessageid: <1537588656.09.0.956365154283.issue34397@psf.upfronthosting.co.za>
2018-09-22 03:57:36tim.peterslinkissue34397 messages
2018-09-22 03:57:36tim.peterscreate