logoalt Hacker News

benchloftbrunchtoday at 9:35 AM0 repliesview on HN

It's not UB. Integer promotion applies, the signed int is implicitly coerced to unsigned (or the other way around - don't remember which.)