Author mark.dickinson
Recipients eric.smith, mark.dickinson, r.david.murray, serhiy.storchaka
Date 2012-04-30.18:04:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335809053.43.0.842023438672.issue14700@psf.upfronthosting.co.za>
In-reply-to
Content
> But it has to happen on any platform
> with a 32-bit integer

Not necessarily:  it's undefined behaviour, so the compiler can do as it wishes.

Your patch should also address possible overflow of the addition.
History
Date User Action Args
2012-04-30 18:04:13mark.dickinsonsetrecipients: + mark.dickinson, eric.smith, r.david.murray, serhiy.storchaka
2012-04-30 18:04:13mark.dickinsonsetmessageid: <1335809053.43.0.842023438672.issue14700@psf.upfronthosting.co.za>
2012-04-30 18:04:12mark.dickinsonlinkissue14700 messages
2012-04-30 18:04:12mark.dickinsoncreate