Hacker News new | ask | show | jobs
by EpicEng 4125 days ago
Yep, you're right. I knew left shift for signed/unsigned as it is more complicated and I've had to look it up more often, but I forgot that right shift can be UB for unsigned integral types as well.