Post

That would be an invalid optimization for the compiler to do. It would totally be a valid optimization for the compiler to do if your integer types were unsigned, but you're using a signed `int64_t` and those two functions give different results if passed -1.

No replies yet.