Hacker News new | past | comments | ask | show | jobs | submit login

Given that all arithmetic autopromotes to int if smaller than int, there's no undefined behavior in this code if int is 32-bits (which is true on most systems).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: