5 ms·
Yeah you would at least expect it to be a power of 2 (minus one)
by kyllo 11y ago
Yeah you would at least expect it to be a power of 2 (minus one)
- Kliment 11y agoThe most common cause of 10^n-1 limits is auto-incrementing filenames like img0001.
- greggman 11y agoActually it's a common error. Some buffer is 4 bytes for digits and overflows when 5 are written when the counter goes to 10000
- kyllo 11y agoCome to think of it, I just saw this on a lottery machine last night. Powerball jackpot display was stuck at 999 million.
- toomanybeersies 11y agoWouldn't you use modulo 10000 and then avoid that error? Sure, you might overwrite some files, but at least you wouldn't brick the thing.