» Mon Mar 25, 2013 9:17 am
A signed short int (smallest integer variable one can get on most systems) caps at 32 767. If it exceeds that it'll roll over to the signage bit and start counting down to -32 767. Once it gets past that there'll be problems. But it probably isn't an short but rather a normal int which caps at 2,147,483,648 and follows the same pattern as a short regarding rollover.