Merge pull request #3380 from rtfeldman/3377-list-range-segfault

Fixes `List.range` segfaulting
This commit is contained in:
Jan Van Bruggen 2022-07-06 00:59:01 -06:00 committed by GitHub
commit 0002cdf8ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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