rbtree: fix previously flawed implementation

got book'd up

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
Michael Shaw 2023-05-11 12:51:14 -04:00
commit 82c32011b4
2 changed files with 103 additions and 53 deletions

View file

@ -14,7 +14,8 @@ struct rbnode {
int color;
uint64_t key;
uint64_t value; /* extra value */
uint64_t value; /* extra values */
uint64_t value2;
};
/* we use this rbtree structure because the root node will potentially be