mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 23:33:53 +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]
|
||||
end
|
||||
-- Replace deleted key
|
||||
tree.key = rightmost.key
|
||||
tree.key = sidemost.key
|
||||
-- Replace the successor by it's single child
|
||||
parents[len][sides[len]] = sidemost[side]
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user