> Monday, 9 December 1996 20:44:15, Hans Lunsing wrote to Frank
> Cox Subject: Huge arrays
FC>>> for x%=-32768 to 32767
FC>>> next
HL>> How do you mean, in both cases? The range of an integer
HL>> variable is -32768 to 32767 inclusive, so in the last
HL>> example x% is in the right range.
Odd, the original message that you wrote here seems to have been lost. All I
have here is the part quoted by Marcel Veldhuizen.
Could you maybe send it out again?
Anyway, the problem here is that on its last interation, x% will be equal to
32768. On the second-last iteration it will be 32767, and it's not time to
leave the loop yet. On the last iteration, it will be 32768 and time to
leave the loop. But 32768 is outside of the range of an integer variable.
--- Msgedsq 2.2e
---------------
* Origin: THE BIG ELECTRIC CAT Melville Sask *SDS* *PDN* (1:140/53)
|