my_basic icon indicating copy to clipboard operation
my_basic copied to clipboard

FOR Loop / INT goes wild

Open invpe opened this issue 1 year ago • 0 comments

Script:

STARTHERE = 274148111
ENDHERE = STARTHERE+100 
PRINT STARTHERE,"->",ENDHERE;
FOR Z = STARTHERE TO ENDHERE 
PRINT Z;
NEXT Z

Execution:

274148111->274148192 << Bad already
274148096
274148097
274148098
274148099
274148100
274148101
274148102
274148103
274148104
274148105
274148106
274148107
...

INTEGER type defined as

#ifndef int_t
#	define int_t int
#endif /* int_t */

Thus it should theoretically support INT_MAX=2147483647 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

invpe avatar Dec 28 '23 23:12 invpe