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

There are exactly zero undefined behaviors around operations on unsigned integer types in C or in C++.

To get meaningful results may require some care, but the languages provide everything needed to exercise such care.



Perhaps you missed my earlier comment.

> Except signed overflow invoking Undefined Behaviour in any C compiler, whereas unsigned overflow does not.

We aren't talking about unsigned integer types. We're talking about the behaviour of signed integer types.




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

Search: