Fix missed memcpy update

Everything should be in terms of kNodeCopyBegin and kNodeCopySize now
This commit is contained in:
2024-03-08 13:23:43 -08:00
parent 0038382661
commit 60df97847c

View File

@@ -1466,9 +1466,8 @@ template <bool kBegin>
*self = newNode<Node4>(); *self = newNode<Node4>();
memcpy((char *)*self + sizeof(Node::type), memcpy((char *)*self + kNodeCopyBegin, (char *)old + kNodeCopyBegin,
(char *)old + sizeof(Node::type), kNodeCopySize);
sizeof(Node) - sizeof(Node::type));
(*self)->partialKeyLen = partialKeyIndex; (*self)->partialKeyLen = partialKeyIndex;
(*self)->entryPresent = false; (*self)->entryPresent = false;
(*self)->numChildren = 0; (*self)->numChildren = 0;