|
|
|
|
|
by ok123456
52 days ago
|
|
The only real benefits to unsigned math are that overflow is generally defined as a simple wrap (odometer), and it doubles the range. Relying on that doubled range for bounds is flirting with disaster, though. The downside is a pervasive, constant footgun every time you are dealing with indices. |
|