All programming languages I regularly use as a professional programmer will throw an exception when casting -1 to an unsigned. As for comparisons, those will result in a not equal.
Not a member of The Register?
Create a new account
Remember me on this computer?
The Register - Independent news and views for the tech community. Part of Situation Publishing
Join our daily or weekly newsletters, subscribe to a specific section or set News alerts
Biting the hand that feeds IT © 1998–2020