Correct minor bug in TaggedPointer move constructor:

A typographical error would mishandle the case where a caller explicitly
tries to remove a child that is not actually part of the node. This case
is never invoked in practice, and so the bug would will never trigger.
This commit is contained in:
seelabs
2022-02-02 09:26:04 -05:00
committed by manojsdoshi
parent bd97e59254
commit 61389a8bef

View File

@@ -372,7 +372,7 @@ inline TaggedPointer::TaggedPointer(
++srcDstIndex;
}
}
else if (!inDst && !inDst)
else if (!inSrc && !inDst)
{
// in neither
if (srcDstIsDense)
@@ -433,7 +433,7 @@ inline TaggedPointer::TaggedPointer(
++srcIndex;
}
}
else if (!inDst && !inDst)
else if (!inSrc && !inDst)
{
// in neither
if (dstIsDense)