X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=cds%2Fcontainer%2Fimpl%2Fbronson_avltree_map_rcu.h;h=f21253b5728529262d7bf252b7290dc1d3a53f49;hp=d1e2d9fab20326ed014bff7fcd2f7f9126c63167;hb=9bcb21890d7175dcc634120dac455516fa35dadd;hpb=8abb8f5e76bd8d723aff8078934ee30e59fa117a diff --git a/cds/container/impl/bronson_avltree_map_rcu.h b/cds/container/impl/bronson_avltree_map_rcu.h index d1e2d9fa..f21253b5 100644 --- a/cds/container/impl/bronson_avltree_map_rcu.h +++ b/cds/container/impl/bronson_avltree_map_rcu.h @@ -1785,7 +1785,7 @@ namespace cds { namespace container { int hLRL = height_null( child( pLRight, left_child, memory_model::memory_order_relaxed ), memory_model::memory_order_acquire ); int balance = hLL - hLRL; - if ( balance >= -1 && balance <= 1 && !( ( hLL == 0 || hLRL == 0 ) && !pLeft->is_valued( memory_model::memory_order_relaxed )) ) { + if ( balance >= -1 && balance <= 1 && !( ( hLL == 0 || hLRL == 0 ) && !pLeft->is_valued( memory_model::memory_order_relaxed ))) { // nParent.child.left won't be damaged after a double rotation return rotate_right_over_left_locked( pParent, pNode, pLeft, hR, hLL, pLRight, hLRL ); } @@ -1840,7 +1840,7 @@ namespace cds { namespace container { node_type * pRLRight = child( pRLeft, right_child, memory_model::memory_order_relaxed ); int hRLR = height_null( pRLRight, memory_model::memory_order_acquire ); int balance = hRR - hRLR; - if ( balance >= -1 && balance <= 1 && !( ( hRR == 0 || hRLR == 0 ) && !pRight->is_valued( memory_model::memory_order_relaxed )) ) + if ( balance >= -1 && balance <= 1 && !( ( hRR == 0 || hRLR == 0 ) && !pRight->is_valued( memory_model::memory_order_relaxed ))) return rotate_left_over_right_locked( pParent, pNode, hL, pRight, pRLeft, hRR, hRLR ); }