implementation for stack and some tests #1

Merged
wiesendsi102436 merged 12 commits from simon into main 2025-12-05 07:40:45 +00:00
Showing only changes of commit 34e5a59196 - Show all commits

View File

@ -30,7 +30,7 @@ TreeNode *addToTree(TreeNode *root, const void *data, size_t dataSize, CompareFc
{ {
return NULL; return NULL;
} }
insertedNode->data = memcpy(insertedNode->data, data, dataSize); memcpy(insertedNode->data, data, dataSize);
// reset isDuplicate if it exists // reset isDuplicate if it exists
if (isDuplicate) if (isDuplicate)
{ {