mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
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:
@@ -372,7 +372,7 @@ inline TaggedPointer::TaggedPointer(
|
|||||||
++srcDstIndex;
|
++srcDstIndex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!inDst && !inDst)
|
else if (!inSrc && !inDst)
|
||||||
{
|
{
|
||||||
// in neither
|
// in neither
|
||||||
if (srcDstIsDense)
|
if (srcDstIsDense)
|
||||||
@@ -433,7 +433,7 @@ inline TaggedPointer::TaggedPointer(
|
|||||||
++srcIndex;
|
++srcIndex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!inDst && !inDst)
|
else if (!inSrc && !inDst)
|
||||||
{
|
{
|
||||||
// in neither
|
// in neither
|
||||||
if (dstIsDense)
|
if (dstIsDense)
|
||||||
|
|||||||
Reference in New Issue
Block a user