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

INT_MAX == UINT_MAX is the only valid failing case, because elsewhere in the standard integer types are restricted to pure binary representations. This means that if UINT_MAX is greater than INT_MAX, it must be at least INT_MAX * 2 + 1.


That can't actually be taken for granted, relevant Usenet discussion begins here:

http://groups.google.com/group/comp.std.c/browse_thread/thre...


I concur with Dan Pop's interpretation.




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

Search: