Merge pull request #71564 from dalexeev/gds-optimize-for-range

GDScript: Optimize non-constant `for`-`range`
This commit is contained in:
Thaddeus Crews
2025-06-09 17:08:45 -05:00
10 changed files with 267 additions and 119 deletions

View File

@@ -0,0 +1,7 @@
# GH-83293
func test():
for x in range(1 << 31, (1 << 31) + 3):
print(x)
for x in range(1 << 62, (1 << 62) + 3):
print(x)

View File

@@ -0,0 +1,7 @@
GDTEST_OK
2147483648
2147483649
2147483650
4611686018427387904
4611686018427387905
4611686018427387906