Fix rbtree inorder reverse iter

This commit is contained in:
Gregory Lirent 2022-08-26 10:00:49 +03:00
parent 834ab672bc
commit 0881ba9076

View File

@ -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;
} }