The integer was incremented beyond the maximum allowed value for integers, so it looped to minus 1.
I don't think I can say looped back to, because the integer never had minus 1 as a value before, but looped to sounds incorrect. Is there a better phrase?
How about this? eg so it went to minus 1. eg so it set itself to minus 1.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
How about this?
eg so it went to minus 1.
eg so it set itself to minus 1.