From 65a7b5a802a15daa6274403fef822ec3c9b95469 Mon Sep 17 00:00:00 2001 From: Matt Armstrong Date: Tue, 11 Oct 2022 20:19:16 -0700 Subject: [PATCH] ; * src/itree.c (check_subtree): fix logical error in eassert --- src/itree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itree.c b/src/itree.c index deef0335cfd..1728a8ab3a1 100644 --- a/src/itree.c +++ b/src/itree.c @@ -277,7 +277,7 @@ check_subtree (struct interval_node *node, if (check_red_black_invariants) { eassert (left_result.black_height == right_result.black_height); - eassert (node->parent != ITREE_NULL || !node->red || !node->parent->red); + eassert (node->parent == ITREE_NULL || !node->red || !node->parent->red); } result.size = 1 + left_result.size + right_result.size; -- 2.39.2