▲ | technion 5 days ago | |
Let's say youre pedantic with code. Ive been trying to be lately - clippy has an ovefflow lint for rust i try to use. Error: game running for two years, rebooting so you cant cheese a timer. Does this make the bug any better handled? Bugs like this annoy me because they arent easily answered. | ||
▲ | account42 4 days ago | parent [-] | |
There are always limits to what a program can do. The only fix is to choose large enough integers (and appropriate units) so that you can represent long enough times / large enough sizes / etc. that anyone could reasonably encounter. What sizes make sense also include how they impact performance and for a game from the 32-bit era, a crash (controlled abort or not) after over two years is probably a better choice than slowing everything down by using a 64-bit integer. |