Message326068
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. |
|
Date |
User |
Action |
Args |
2018-09-22 03:57:36 | tim.peters | set | recipients:
+ tim.peters, mark.dickinson, serhiy.storchaka, sir-sigurd, Windson Yang |
2018-09-22 03:57:36 | tim.peters | set | messageid: <1537588656.09.0.956365154283.issue34397@psf.upfronthosting.co.za> |
2018-09-22 03:57:36 | tim.peters | link | issue34397 messages |
2018-09-22 03:57:36 | tim.peters | create | |
|