Skip to content

FOR Loop / INT goes wild #93

@invpe

Description

@invpe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions