Comment

Comment by still_grokking

Little nitpick:

In C/C++ it's "only" UB for signed ints.

For unsigned ints it's arithmetic modulo 2^n (where n is the number of bits in the value representation of that particular size of integer).

Such divergent definitions make the whole mess of course even bigger, that's not the point.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton