Make typing hotpath work.

This commit is contained in:
2026-07-28 15:19:25 +01:00
parent 425ffddf71
commit ee887d0806
5 changed files with 50 additions and 19 deletions
-2
View File
@@ -155,10 +155,8 @@ ShardPtr append_leaf(Shard *root, Shard *leaf) {
return ShardPtr(leaf);
if (root->kind == Shard::ShardKind::Petal)
return merge_leaves(root, leaf);
Branch *b = (Branch *)root;
auto new_right = append_leaf(b->right.ptr, leaf);
return balance(new Branch(b->left.ptr, new_right.ptr));
}