From: Matt Armstrong Date: Wed, 12 Oct 2022 03:19:16 +0000 (-0700) Subject: ; * src/itree.c (check_subtree): fix logical error in eassert X-Git-Tag: emacs-29.0.90~1616^2~406^2~15 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=65a7b5a802a15daa6274403fef822ec3c9b95469;p=emacs.git ; * src/itree.c (check_subtree): fix logical error in eassert --- 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;