Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Proposal for a Friendly Dialect of C (regehr.org)
1 point by ingve on Sept 25, 2017 | hide | past | favorite | 1 comment


> 3.Shift by negative or shift-past-bitwidth produces an unspecified result.

I never understood why this is not defined as something that returns 0 (or -1 for a signed negative number, with a long right shift).




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

Search: