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

> It doesn't make sense because there's no such number as 2^31 in 32-bit two's complement arithmetic

I started out with the definition:

    0x7FFFFFFF = 2^31 - 1
Adding one to that

    0x7FFFFFFF + 1 = 2^31 - 1 + 1
should be 2^31, but it isn't.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: