Addressing feedback
This commit is contained in:
parent
884c3195d9
commit
e71f343a99
8
shape.c
8
shape.c
@ -63,7 +63,10 @@ redblack_right(redblack_node_t * node)
|
|||||||
static redblack_node_t *
|
static redblack_node_t *
|
||||||
redblack_find(redblack_node_t * tree, ID key)
|
redblack_find(redblack_node_t * tree, ID key)
|
||||||
{
|
{
|
||||||
if (tree != LEAF) {
|
if (tree == LEAF) {
|
||||||
|
return LEAF;
|
||||||
|
}
|
||||||
|
else {
|
||||||
if (tree->key == key) {
|
if (tree->key == key) {
|
||||||
return tree;
|
return tree;
|
||||||
}
|
}
|
||||||
@ -76,9 +79,6 @@ redblack_find(redblack_node_t * tree, ID key)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline char
|
static inline char
|
||||||
|
Loading…
x
Reference in New Issue
Block a user