Merge pull request #35 from mtexier/fix-59.4

Fix listing 59.4
This commit is contained in:
James Gregory 2019-08-13 21:23:50 +10:00 committed by GitHub
commit 28da7c0a8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -547,7 +547,7 @@ void WalkTree(NODE *pNode)
// Pop the next node from the stack so // Pop the next node from the stack so
// we can visit it and see if it has a // we can visit it and see if it has a
// right subtree to be traversed // right subtree to be traversed
if ((pNode = *pNodeStack) == NULL) if ((pNode = *--pNodeStack) == NULL)
{ {
// Stack is empty and the current node // Stack is empty and the current node
// has no right child; we're done // has no right child; we're done