Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A bit of background on compilers exploiting signed overflow. Parent comment
The second example causes unexpected behavior (and probably ub later) if: min + step > MIN_TYPE_MAX
The last example causes undefined behavior if: max - min < step - 1.
There are no comments on this comment yet.
The second example causes unexpected behavior (and probably ub later) if: min + step > MIN_TYPE_MAX
The last example causes undefined behavior if: max - min < step - 1.