fixed bug in nextTreeData()

This commit is contained in:
hofmannjo99187 committed 2025-12-13 16:21:24 +01:00
1 parent c37ce6327c
commit 686fe8d844
4 files changed
+5 -8

No files matched your search

+5 -8
View File
@@ -87,12 +87,8 @@ TreeNode *addToTreeRec(TreeNode *currentNode, TreeNode *newNode, CompareFctType
*isDuplicate = 1;
}
}
/*
if (isDuplicate != NULL)
{
*isDuplicate = 0;
}
*/
return currentNode;
}
@@ -111,13 +107,14 @@ void *nextTreeData(TreeNode *root)
{
// Add tree to stack so that bigest entry is ontop
stackRoot = nextTreeDataRec(root, stackRoot);
pointerToReturn = stackRoot;
pointerToReturn = top(stackRoot);
}
else
{
// return current top entry and then pop that top entry
pointerToReturn = top(stackRoot);
stackRoot = pop(stackRoot);
pointerToReturn = top(stackRoot);
}
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.