From: khizmax Date: Wed, 8 Feb 2017 07:16:19 +0000 (+0300) Subject: Fixed compiler error X-Git-Tag: v2.3.0~174^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f94d7185c054778a365e04d33635b3f295cc04f9;p=libcds.git Fixed compiler error --- diff --git a/src/dhp.cpp b/src/dhp.cpp index 0991de10..341cc361 100644 --- a/src/dhp.cpp +++ b/src/dhp.cpp @@ -210,8 +210,7 @@ namespace cds { namespace gc { namespace dhp { for ( thread_record* hprec = pHead; hprec; hprec = pNext ) { assert( hprec->m_idOwner.load( atomics::memory_order_relaxed ) == nullThreadId - || hprec->m_idOwner.load( atomics::memory_order_relaxed ) == mainThreadId ) - ); + || hprec->m_idOwner.load( atomics::memory_order_relaxed ) == mainThreadId ); retired_array& retired = hprec->retired_; diff --git a/src/hp.cpp b/src/hp.cpp index 99a3d165..d3b16b58 100644 --- a/src/hp.cpp +++ b/src/hp.cpp @@ -162,8 +162,7 @@ namespace cds { namespace gc { namespace hp { for ( thread_record* hprec = pHead; hprec; hprec = pNext ) { assert( hprec->m_idOwner.load( atomics::memory_order_relaxed ) == nullThreadId - || hprec->m_idOwner.load( atomics::memory_order_relaxed ) == mainThreadId ) - ); + || hprec->m_idOwner.load( atomics::memory_order_relaxed ) == mainThreadId ); retired_array& arr = hprec->retired_; for ( retired_ptr* cur{ arr.first() }, *last{ arr.last() }; cur != last; ++cur ) {