mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
Fix segfault of List.range 0 3
This commit is contained in:
parent
2a82d24847
commit
ce0bbbcef4
1 changed files with 1 additions and 1 deletions
|
@ -581,7 +581,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