diff options
| author | gingerBill <bill@gingerbill.org> | 2021-05-15 18:02:06 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-05-15 18:02:06 +0100 |
| commit | f7b1290fe930099a1250dbde64cc1c081fbd4828 (patch) | |
| tree | 0501e2a3202e6b47022febb3d5a82c70bf4af9ff /src/check_expr.cpp | |
| parent | b01c2e101712cf58e60bfc41d85fc33b60fcf349 (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_expr.cpp')
0 files changed, 0 insertions, 0 deletions