mirror of
https://github.com/apple/pkl.git
synced 2026-05-25 16:19:20 +02:00
Vendor paguro's RrbTree, fix an int overflow breaking large Lists (#1337)
This commit is contained in:
@@ -238,6 +238,7 @@ examples {
|
||||
List().repeat(1)
|
||||
List().repeat(5)
|
||||
module.catch(() -> list1.repeat(-1))
|
||||
List(0).repeat(118866785).length // triggers an overflow wraparound in original paguro impl
|
||||
}
|
||||
|
||||
["sortWith()"] {
|
||||
|
||||
@@ -192,6 +192,7 @@ examples {
|
||||
List()
|
||||
List()
|
||||
"Expected a positive number, but got `-1`."
|
||||
118866785
|
||||
}
|
||||
["sortWith()"] {
|
||||
List()
|
||||
|
||||
Reference in New Issue
Block a user