4 ms·
You didn't check for overflow.
by dramaticus3 15y ago
You didn't check for overflow.
- ars 15y agoDon't check for overflow. Simply use a data type so large that it would take centuries to overflow. If you were doing a million increments per second it would take almost 600,000 years to overflow a 64 bit int.
- dramaticus3 15y agoCheck your assumptions. The field could be updated at any time to any value by another connection. And who's to say we started at zero.