Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Smaller-than-'int' types get implicitly promoted to 'int' before arithmetic. Results are indeed very funky.


That makes sense then. Multiplying two uint16_t can wraparound in an int, while two int16_t or smaller cannot.




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

Search: