aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-05-15 18:02:06 +0100
committergingerBill <bill@gingerbill.org>2021-05-15 18:02:06 +0100
commitf7b1290fe930099a1250dbde64cc1c081fbd4828 (patch)
tree0501e2a3202e6b47022febb3d5a82c70bf4af9ff /src/check_decl.cpp
parentb01c2e101712cf58e60bfc41d85fc33b60fcf349 (diff)
Change `for i in x..y {}` behaviour
Adds an extra check before incrementation to prevent the possibility of overflowing of `y` is at the limit maximum size of the integer e.g. `for i in u8(0)..255 {}` (assuming `255` is not known at compile time)
Diffstat (limited to 'src/check_decl.cpp')
0 files changed, 0 insertions, 0 deletions