Vendor paguro's RrbTree, fix an int overflow breaking large Lists (#1337)
This commit is contained in:
1 parent
6c3683c55e
commit
d1c652f736
8 files changed
+1983
-11
No files matched your search
@@ -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