Hacker News new | ask | show | jobs
by ncmncm 2092 days ago
The result is unspecified, if you don't mask off the high bits. Some chips will do it implicitly, and give you the right answer anyway, unportably.

This is why testing is not a substitute for correctness. Sometimes you get the right answer by accident.

But it's good enough for code golf.