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

Yet another example of unnecessary undefined behavior in C as a consequence of needing to run on dead hardware. Bit shifting should clearly be defined to be operating on the underlying bits, with the resulting value being whatever that bit pattern would be on the target architecture.


“Whatever that bit pattern would be on the target architecture” is the original understanding of undefined.




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

Search: