Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lelanthran
9 months ago
|
parent
|
context
|
favorite
| on:
C and C++ prioritize performance over correctness ...
> Nitpicking, the test itself should avoid overflowing.
Why? Overflowing is well defined for unsigned.
amavect
9 months ago
[–]
Personal preference, hence nitpicking. It forms a special case of the signed integer algorithm, which feels nice.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Why? Overflowing is well defined for unsigned.