Re:Signed Integers Are Two’s Complement
by barrkel on Thursday May 31, 2018 @08:13AM
(#17195706)
Naive overflow checks are often done by adding two positive numbers together and checking if the result is negative. If wrapping is undefined, this no longer works, and the overflow check may be eliminated.
[ Parent
| on HN ]
There are no comments on this comment yet.