}
} else if (height() < Level)
// end() may have created a height=0 path.
- path.resize(Level + 1, Entry(0, 0, 0));
+ path.resize(Level + 1, Entry(nullptr, 0, 0));
// NR is the subtree containing our left sibling.
--path[l].offset;
// Go up the tree until we can go right.
unsigned l = Level - 1;
- while (l && atLastBranch(l))
+ while (l && atLastEntry(l))
--l;
// We can't go right.
- if (atLastBranch(l))
+ if (atLastEntry(l))
return NodeRef();
// NR is the subtree containing our right sibling.
// Go up the tree until we can go right.
unsigned l = Level - 1;
- while (l && atLastBranch(l))
+ while (l && atLastEntry(l))
--l;
// NR is the subtree containing our right sibling. If we hit end(), we have