"Cast to unsigned and just check the upper bound:"
Guilty of that one. In my defence, I was once an asm programmer and still bitch about the loss of the carry/borrow and overflow flags.
"Cast to unsigned and just check the upper bound:"
Guilty of that one. In my defence, I was once an asm programmer and still bitch about the loss of the carry/borrow and overflow flags.