diff options
| author | Matthew D. Steele <mdsteele@alum.mit.edu> | 2018-08-03 11:44:39 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-08-03 11:44:39 -0400 |
| commit | c2a08d7c516899b4c794bd6c3fc07ddb22d5876a (patch) | |
| tree | d5c286e30ac12b3c4d775c3c4a830b4f2bb1da79 /src/ir.cpp | |
| parent | 298abbcff86629273f24891d243fb6e503392e8f (diff) | |
| download | zig-c2a08d7c516899b4c794bd6c3fc07ddb22d5876a.tar.gz zig-c2a08d7c516899b4c794bd6c3fc07ddb22d5876a.zip | |
Fix the start-less-than-end assertion in std.rand.Random.range (#1325)
The function returns a value in [start, end), but was asserting
start <= end instead of start < end. With this fix, range(1, 1)
will now assertion error instead of dividing by zero.
Diffstat (limited to 'src/ir.cpp')
0 files changed, 0 insertions, 0 deletions
