From da15db787bffe90e8ea8baac6a0cf6153922d088 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 24 Aug 2016 15:25:33 +0200 Subject: score: Improve red-black tree debug support Ensure that we extract a node only from the right tree. --- cpukit/score/src/rbtreeextract.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cpukit/score/src/rbtreeextract.c') diff --git a/cpukit/score/src/rbtreeextract.c b/cpukit/score/src/rbtreeextract.c index 3905f64900..8a87b2d56c 100644 --- a/cpukit/score/src/rbtreeextract.c +++ b/cpukit/score/src/rbtreeextract.c @@ -21,8 +21,7 @@ void _RBTree_Extract( RBTree_Node *the_node ) { + _Assert( the_node->tree == the_rbtree ); RB_REMOVE( RBTree_Control, the_rbtree, the_node ); -#if defined(RTEMS_DEBUG) - _RBTree_Set_off_tree( the_node ); -#endif + _RBTree_Initialize_node( the_node ); } -- cgit v1.2.3