04-20-2012, 07:37 AM
britlion Wrote:Interesting.It's exactly that (after debugging yesterday night). Basically, when end - start overflows.
Looks to me as though it's an issue if the gap from start -> end is greater than the range of the variable that's holding them....
ie bigger than 128 for a byte
or 32767 for an integer.
This is not a bug in for, but (again :! with relational operators ("comparators") for signed values, so (a < b) for signed should fail also. It seems a regression bug when reintroduced in 1.2.8 after the "hard refactorization II".