mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
Merge pull request #3380 from rtfeldman/3377-list-range-segfault
Fixes `List.range` segfaulting
This commit is contained in:
commit
0002cdf8ec
1 changed files with 1 additions and 1 deletions
|
@ -598,7 +598,7 @@ range = \start, end ->
|
|||
GT -> []
|
||||
EQ -> [start]
|
||||
LT ->
|
||||
length = Num.intCast (start - end)
|
||||
length = Num.intCast (end - start)
|
||||
|
||||
rangeHelp (List.withCapacity length) start end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue