Fix rbtree inorder reverse iter
This commit is contained in:
parent
834ab672bc
commit
0881ba9076
@ -230,6 +230,9 @@ stack_t libcdsb_builtin_rbtree_iter_inorder(rbnode_t** root, bool reverse) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (reverse)
|
||||||
|
stack_reverse(&z);
|
||||||
|
|
||||||
return z;
|
return z;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user