visitLeaves must visit all branches

This commit is contained in:
David Schwartz
2014-01-31 17:23:10 -08:00
committed by Vinnie Falco
parent 3e218c494d
commit d0ca81ff36

View File

@@ -73,7 +73,7 @@ void SHAMap::visitLeavesInternal (std::function<void (SHAMapItem::ref item)>& fu
else
{
// If there are no more children, don't push this node
while ((pos != 15) && (child->isEmptyBranch (pos)))
while ((pos != 15) && (node->isEmptyBranch (pos + 1)))
++pos;
if (pos != 15)