Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
philiprbrenan committed Nov 24, 2024
1 parent e5322f3 commit 7d2b368
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BtreeSML.java
Original file line number Diff line number Diff line change
Expand Up @@ -658,16 +658,16 @@ boolean mergeRoot() // M
{z();
if (l.leafSize() + r.leafSize() <= maxKeysPerLeaf())
{z(); Leaf.clear(bb);
final int nl = l.leafSize();
final int nl = l.leafSize(), llb = l.leafBase(), rlb = r.leafBase();
for (int i = 0; i < nl; ++i)
{z();
final StuckSML.Shift f = Leaf.shift1(l.leafBase());
final StuckSML.Shift f = Leaf.shift1(llb);
Leaf.push(ll, f.key, f.data);
}
final int nr = r.leafSize();
for (int i = 0; i < nr; ++i)
{z();
final StuckSML.Shift f = Leaf.shift1(r.leafBase());
final StuckSML.Shift f = Leaf.shift1(rlb);
Leaf.push(ll, f.key, f.data);
}
isLeaf(true);
Expand Down

0 comments on commit 7d2b368

Please sign in to comment.