mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-26 17:23:45 +01:00
Fix ranked set
This commit is contained in:
parent
048eaac333
commit
e5ac7aa27b
@ -214,7 +214,7 @@ local function _delete(self, key, is_rank)
|
|||||||
sidemost = sidemost[other_side]
|
sidemost = sidemost[other_side]
|
||||||
end
|
end
|
||||||
-- Replace deleted key
|
-- Replace deleted key
|
||||||
tree.key = rightmost.key
|
tree.key = sidemost.key
|
||||||
-- Replace the successor by it's single child
|
-- Replace the successor by it's single child
|
||||||
parents[len][sides[len]] = sidemost[side]
|
parents[len][sides[len]] = sidemost[side]
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user