News for hackers. Stuff that matters.
Re:A bit of background on compilers exploiting signed overflow by pbsd on Sunday May 08, 2016 @12:49PM (#11654679)
Something like for(size_t i = 0; i <= n; i += k) { work_with(n - i); }?

This sort of loop always comes up in these discussions, and I was never convinced that signed integers were worth it for that alone.

Re:A bit of background on compilers exploiting signed overflow by Sean1708 on Monday May 09, 2016 @10:02AM (#11659890)
To be honest I think there are good arguments to both sides, and I don't think there is really a one size fits all solution here. If you use unsigned you've got to pay attention to certain corner cases, if you use signed you've got to pay attention to different corner cases, it's up to you to decide which is more common in your code.