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

Multiplying unsigned shorts is famously (?) undefined behavior on most platforms.

They get promoted to int, and the result overflows.

https://stackoverflow.com/questions/33732489/




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

Search: