|
@@ -427,7 +427,8 @@ static void interval_erase_color(struct interval_node *node,
|
|
|
} else {
|
|
|
if (node_is_black_or_0(tmp->in_right)) {
|
|
|
struct interval_node *o_left;
|
|
|
- if ((o_left = tmp->in_left))
|
|
|
+ o_left = tmp->in_left;
|
|
|
+ if (o_left)
|
|
|
o_left->in_color = INTERVAL_BLACK;
|
|
|
tmp->in_color = INTERVAL_RED;
|
|
|
__rotate_right(tmp, root);
|
|
@@ -457,7 +458,8 @@ static void interval_erase_color(struct interval_node *node,
|
|
|
} else {
|
|
|
if (node_is_black_or_0(tmp->in_left)) {
|
|
|
struct interval_node *o_right;
|
|
|
- if ((o_right = tmp->in_right))
|
|
|
+ o_right = tmp->in_right;
|
|
|
+ if (o_right)
|
|
|
o_right->in_color = INTERVAL_BLACK;
|
|
|
tmp->in_color = INTERVAL_RED;
|
|
|
__rotate_left(tmp, root);
|