Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
What's your issue about?
The unary negation operator does not check for overflows:
This is OK for all inputs except -2^127, for which it returns -2^127 instead of reverting.