>> im not going to argue whether this is right or wrong but in delphi at >> least >> $R only affects run time range checking. In delphi that code will give >> an >> error (constant expression violates subrange bounds) even with range >> checking off.
I think this is a special case with for-loops. Delphi also doesn't allow the loop-variable to be int64. I'll add a check to test for the 32bit range. Ofcourse this is a 32bit target only issue. The code is legal on 64bit targets. _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
