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

6.5.7.3 of the C99 standard specifies that each operand of a bit shift first undergoes integer promotion.



yesh! Alright I see the issue. This `int` then gets sign extended to a 64-bit register.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: