<< std::make_pair( "update_functor_modify", nEnsFuncModified )
<< std::make_pair( "finish_map_size", testMap.size() );
- EXPECT_EQ( nDelValueFailed, 0 );
+ EXPECT_EQ( nDelValueFailed, 0u );
EXPECT_EQ( nDelValueSuccess, nDeleteSuccess );
- EXPECT_EQ( nUpdateFailed, 0 );
+ EXPECT_EQ( nUpdateFailed, 0u );
EXPECT_EQ( nUpdateCreated + nUpdateModified, nEnsFuncCreated + nEnsFuncModified );
// nInsFuncCalled is call count of insert functor
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "map_type.h"
for ( size_t i = 0; i < pool.size(); ++i ) {
inserter& thr = static_cast<inserter&>(pool.get( i ));
- EXPECT_EQ( thr.m_nInsertFailed, 0 ) << "thread " << thr.id();
- EXPECT_EQ( thr.m_nFindFail, 0 ) << "thread " << thr.id();
+ EXPECT_EQ( thr.m_nInsertFailed, 0u ) << "thread " << thr.id();
+ EXPECT_EQ( thr.m_nFindFail, 0u ) << "thread " << thr.id();
nInsertSuccess += thr.m_nInsertSuccess;
nInsertFailed += thr.m_nInsertFailed;
<< std::make_pair( "find_failed", nFindFailed )
<< std::make_pair( "finish_map_size", testMap.size() );
- EXPECT_EQ( nInsertFailed, 0 );
- EXPECT_EQ( nFindFailed, 0 );
+ EXPECT_EQ( nInsertFailed, 0u );
+ EXPECT_EQ( nFindFailed, 0u );
check_before_cleanup( testMap );
<< std::make_pair( "error_priority_violation", nTotalError );
EXPECT_EQ( nTotalPopped, s_nQueueSize );
- EXPECT_EQ( nTotalError, 0 ) << "priority violations";
- EXPECT_EQ( nTotalErrorEq, 0 ) << "double key";
+ EXPECT_EQ( nTotalError, 0u ) << "priority violations";
+ EXPECT_EQ( nTotalErrorEq, 0u ) << "double key";
}
propout() << q.statistics();
s_nThreadCount = cfg.get_size_t( "ThreadCount", s_nThreadCount );
s_nQueueSize = cfg.get_size_t( "QueueSize", s_nQueueSize );
- if ( s_nThreadCount == 0 )
+ if ( s_nThreadCount == 0u )
s_nThreadCount = 1;
- if ( s_nQueueSize == 0 )
+ if ( s_nQueueSize == 0u )
s_nQueueSize = 1000;
}
for ( size_t i = 0; i < pool.size(); ++i ) {
Producer<PQueue>& prod = static_cast<Producer<PQueue>&>(pool.get( i ));
- EXPECT_EQ( prod.m_nPushError, 0 ) << "producer=" << i;
+ EXPECT_EQ( prod.m_nPushError, 0u ) << "producer=" << i;
}
EXPECT_FALSE( q.empty());
s_nThreadCount = cfg.get_size_t( "ThreadCount", s_nThreadCount );
s_nQueueSize = cfg.get_size_t( "QueueSize", s_nQueueSize );
- if ( s_nThreadCount == 0 )
+ if ( s_nThreadCount == 0u )
s_nThreadCount = 1;
- if ( s_nQueueSize == 0 )
+ if ( s_nQueueSize == 0u )
s_nQueueSize = 1000;
}
assert( t.type() == producer_thread );
Producer<PQueue>& prod = static_cast<Producer<PQueue>&>(t);
nPushFailed += prod.m_nPushError;
- EXPECT_EQ( prod.m_nPushError , 0 ) << "producer " << i;
+ EXPECT_EQ( prod.m_nPushError , 0u ) << "producer " << i;
}
}
<< std::make_pair( "push_error", nPushFailed );
EXPECT_EQ( nTotalPopped, s_nQueueSize );
- EXPECT_EQ( nPushFailed, 0 );
+ EXPECT_EQ( nPushFailed, 0u );
//check_statistics( testQueue.statistics() );
propout() << q.statistics();
s_nPopThreadCount = cfg.get_size_t( "PopThreadCount", s_nPopThreadCount );
s_nQueueSize = cfg.get_size_t( "QueueSize", s_nQueueSize );
- if ( s_nPushThreadCount == 0 )
+ if ( s_nPushThreadCount == 0u )
s_nPushThreadCount = 1;
- if ( s_nPopThreadCount == 0 )
+ if ( s_nPopThreadCount == 0u )
s_nPopThreadCount = 1;
- if ( s_nQueueSize == 0 )
+ if ( s_nQueueSize == 0u )
s_nQueueSize = 1000;
}
s_nQueueSize = cfg.get_size_t( "QueueSize", s_nQueueSize );
s_nPassCount = cfg.get_size_t( "PassCount", s_nPassCount );
- if ( s_nThreadCount == 0 )
+ if ( s_nThreadCount == 0u )
s_nThreadCount = 1;
- if ( s_nQueueSize == 0 )
+ if ( s_nQueueSize == 0u )
s_nQueueSize = 1024;
- if ( s_nPassCount == 0 )
+ if ( s_nPassCount == 0u )
s_nPassCount = 1;
}
nPopError += strain.m_nPopError;
}
EXPECT_TRUE( !q.empty());
- EXPECT_EQ( nPushError, 0 );
- EXPECT_EQ( nPopError, 0 );
+ EXPECT_EQ( nPushError, 0u );
+ EXPECT_EQ( nPopError, 0u );
}
template <class Queue>
s_nFCPassCount = cfg.get_uint( "FCPassCount", s_nFCPassCount );
s_nFCCompactFactor = cfg.get_uint( "FCCompactFactor", s_nFCCompactFactor );
- if ( s_nReaderThreadCount == 0 )
+ if ( s_nReaderThreadCount == 0u )
s_nReaderThreadCount = 1;
- if ( s_nWriterThreadCount == 0 )
+ if ( s_nWriterThreadCount == 0u )
s_nWriterThreadCount = 1;
- if ( s_nQueueSize == 0 )
+ if ( s_nQueueSize == 0u )
s_nQueueSize = 1000;
}
if ( it->nConsumer == c_nBadConsumer )
++nBadConsumerCount;
}
- EXPECT_EQ( nBadConsumerCount, 0 );
+ EXPECT_EQ( nBadConsumerCount, 0u );
}
analyze( q, nLeftOffset, nRightOffset );
s_nThreadCount = cfg.get_size_t( "ThreadCount", s_nThreadCount );
s_nQueueSize = cfg.get_size_t( "QueueSize", s_nQueueSize );
- if ( s_nThreadCount == 0 )
+ if ( s_nThreadCount == 0u )
s_nThreadCount = 1;
- if ( s_nQueueSize == 0 )
+ if ( s_nQueueSize == 0u )
s_nQueueSize = 1000;
}
for ( size_t i = 0; i < pool.size(); ++i ) {
Producer<Queue>& thread = static_cast<Producer<Queue>&>(pool.get( i ));
- EXPECT_EQ( thread.m_nPushError, 0 ) << " producer thread " << i;
+ EXPECT_EQ( thread.m_nPushError, 0u ) << " producer thread " << i;
}
EXPECT_TRUE( !q.empty() );
nTotalPops += consumer.m_nPopped;
nPopFalse += consumer.m_nPopEmpty;
arrConsumer.push_back( &consumer );
- EXPECT_EQ( consumer.m_nBadWriter, 0 ) << "consumer_thread_no " << i;
+ EXPECT_EQ( consumer.m_nBadWriter, 0u ) << "consumer_thread_no " << i;
size_t nPopped = 0;
for ( size_t n = 0; n < s_nProducerThreadCount; ++n )
s_nProducerThreadCount = cfg.get_size_t( "ProducerCount", s_nProducerThreadCount );
s_nQueueSize = cfg.get_size_t( "QueueSize", s_nQueueSize );
- if ( s_nConsumerThreadCount == 0 )
+ if ( s_nConsumerThreadCount == 0u )
s_nConsumerThreadCount = 1;
- if ( s_nProducerThreadCount == 0 )
+ if ( s_nProducerThreadCount == 0u )
s_nProducerThreadCount = 1;
- if ( s_nQueueSize == 0 )
+ if ( s_nQueueSize == 0u )
s_nQueueSize = 1000;
}
s_nThreadCount = cfg.get_size_t( "ThreadCount", s_nThreadCount );
s_nQueueSize = cfg.get_size_t( "QueueSize", s_nQueueSize );
- if ( s_nThreadCount == 0 )
+ if ( s_nThreadCount == 0u )
s_nThreadCount = 1;
- if ( s_nQueueSize == 0 )
+ if ( s_nQueueSize == 0u )
s_nQueueSize = 1000;
}
cds_test::thread_pool& pool = get_pool();
for ( size_t i = 0; i < pool.size(); ++i ) {
Strain<Queue>& thr = static_cast<Strain<Queue> &>( pool.get(i));
- EXPECT_EQ( thr.m_nUndefWriter, 0 );
- EXPECT_EQ( thr.m_nRepeatValue, 0 );
- EXPECT_EQ( thr.m_nPushError, 0 );
+ EXPECT_EQ( thr.m_nUndefWriter, 0u );
+ EXPECT_EQ( thr.m_nRepeatValue, 0u );
+ EXPECT_EQ( thr.m_nPushError, 0u );
nPushError += thr.m_nPushError;
arrPushCount[ thr.id() ] += thr.m_nPushCount;
}
EXPECT_EQ( nInsertSuccess, s_nSetSize * s_nInsThreadCount );
- EXPECT_EQ( nInsertFailed, 0 );
+ EXPECT_EQ( nInsertFailed, 0u );
propout()
<< std::make_pair( "insert_success", nInsertSuccess )
}
EXPECT_EQ( nInsertSuccess, s_nSetSize * s_nInsThreadCount );
- EXPECT_EQ( nInsertFailed, 0 );
+ EXPECT_EQ( nInsertFailed, 0u );
propout()
<< std::make_pair( "insert_success", nInsertSuccess )
}
EXPECT_EQ( nPopCount, s_nStackSize );
- EXPECT_EQ( nDirtyPop, 0 );
- EXPECT_EQ( nPushError, 0 );
+ EXPECT_EQ( nDirtyPop, 0u );
+ EXPECT_EQ( nPushError, 0u );
for ( size_t i = 0; i < sizeof( arrVal ) / sizeof( arrVal[0] ); ++i ) {
EXPECT_EQ( arrVal[i], 0 ) << "i=" << i;
for ( size_t i = 0; i < pool.size(); ++i ) {
Producer<Stack>& producer = static_cast<Producer<Stack>&>( pool.get( i ));
- EXPECT_EQ( producer.m_nPushError, 0 ) << "Producer=" << i;
+ EXPECT_EQ( producer.m_nPushError, 0u ) << "Producer=" << i;
aThread[producer.id()] = producer.m_nEndItem - 1;
}
EXPECT_FALSE( testStack.empty());
}
EXPECT_EQ( nPopCount, s_nStackSize );
- EXPECT_EQ( nDirtyPop, 0 );
+ EXPECT_EQ( nDirtyPop, 0u );
for ( size_t i = 0; i < sizeof( arrVal ) / sizeof( arrVal[0] ); ++i ) {
EXPECT_EQ( arrVal[i], 0 );
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "test_map_nogc.h"
p = m.get_max();
ASSERT_TRUE( p != nullptr );
- EXPECT_EQ( p->first.nKey, kkSize );
+ EXPECT_EQ( p->first.nKey, static_cast<int>( kkSize ));
}
m.clear();
void check_array( V& arr )
{
for ( size_t i = 0; i < arr.size(); ++i ) {
- EXPECT_EQ( arr[i].nDisposeCount, 2 );
- EXPECT_EQ( arr[i].nDispose2Count, 1 );
+ EXPECT_EQ( arr[i].nDisposeCount, 2u );
+ EXPECT_EQ( arr[i].nDispose2Count, 1u );
}
}
};
ASSERT_TRUE( s.find( i.nKey, []( value_type const& v, int key )
{
EXPECT_EQ( v.key(), key );
- EXPECT_EQ( v.nUpdateNewCount, 2 );
+ EXPECT_EQ( v.nUpdateNewCount, 2u );
}));
break;
case 5:
ASSERT_TRUE( s.find( i, []( value_type const& v, value_type const& arg )
{
EXPECT_EQ( v.key(), arg.key() );
- EXPECT_EQ( v.nUpdateNewCount, 2 );
+ EXPECT_EQ( v.nUpdateNewCount, 2u );
}));
break;
case 6:
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef CDSUNIT_SET_TEST_SET_NOGC_H
it = s.contains( i.nKey );
ASSERT_TRUE( it != s.end() );
- EXPECT_EQ( it->nFindCount, it->nKey );
+ EXPECT_EQ( it->nFindCount, static_cast<unsigned>( it->nKey ));
ASSERT_TRUE( s.contains( i ) != s.end() );
ASSERT_TRUE( s.contains( other_item( i.key() ), other_less() ) != s.end());
}
}
for ( auto it = s.cbegin(); it != s.cend(); ++it ) {
- EXPECT_EQ( it->nFindCount, it->key() * 3 );
+ EXPECT_EQ( it->nFindCount, static_cast<unsigned>( it->key() * 3 ));
}
// clear
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef CDSUNIT_SET_TEST_SET_RCU_H
}
for ( auto it = s.cbegin(); it != s.cend(); ++it ) {
- EXPECT_EQ( it->nFindCount, it->key() * 3 );
+ EXPECT_EQ( it->nFindCount, static_cast<unsigned>( it->key() * 3 ));
}
typedef typename Set::exempt_ptr exempt_ptr;
ASSERT_FALSE( !rp );
}
EXPECT_EQ( rp->key(), i.key() );
- EXPECT_EQ( rp->nFindCount, i.key() * 3 );
+ EXPECT_EQ( rp->nFindCount, static_cast<unsigned>( i.key() * 3 ));
rp->nFindCount *= 2;
}
}
break;
}
EXPECT_EQ( xp->key(), i.key() );
- EXPECT_EQ( xp->nFindCount, i.key() * 6 );
+ EXPECT_EQ( xp->nFindCount, static_cast<unsigned>( i.key() * 6 ));
}
xp.release();
break;
}
EXPECT_EQ( xp->key(), i.key() );
- EXPECT_EQ( xp->nFindCount, i.key() * 6 );
+ EXPECT_EQ( xp->nFindCount, static_cast<unsigned>( i.key() * 6 ));
switch ( idx % 3 ) {
case 0:
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef CDSUNIT_TREE_TEST_INTRUSIVE_TREE_HP_H
for ( auto idx : indices ) {
auto& i = data[idx];
- EXPECT_EQ( i.nFindCount, 0 );
+ EXPECT_EQ( i.nFindCount, 0u );
gp = t.get( i );
ASSERT_FALSE( !gp );
++gp->nFindCount;
- EXPECT_EQ( i.nFindCount, 1 );
+ EXPECT_EQ( i.nFindCount, 1u );
gp = t.get( i.key() );
ASSERT_FALSE( !gp );
++gp->nFindCount;
- EXPECT_EQ( i.nFindCount, 2 );
+ EXPECT_EQ( i.nFindCount, 2u );
gp = t.get_with( other_item( i.key()), other_less());
ASSERT_FALSE( !gp );
++gp->nFindCount;
- EXPECT_EQ( i.nFindCount, 3 );
+ EXPECT_EQ( i.nFindCount, 3u );
- EXPECT_EQ( i.nEraseCount, 0 );
+ EXPECT_EQ( i.nEraseCount, 0u );
switch ( i.key() % 3 ) {
case 0:
gp = t.extract( i.key());
}
ASSERT_FALSE( !gp );
++gp->nEraseCount;
- EXPECT_EQ( i.nEraseCount, 1 );
+ EXPECT_EQ( i.nEraseCount, 1u );
gp = t.extract( i );
ASSERT_TRUE( !gp );
gp.release();
ASSERT_TRUE( t.empty() );
- ASSERT_CONTAINER_SIZE( t, 0 );
+ ASSERT_CONTAINER_SIZE( t, 0u );
// Force retiring cycle
Tree::gc::force_dispose();
for ( auto& i : data ) {
- EXPECT_EQ( i.nDisposeCount, 1 );
+ EXPECT_EQ( i.nDisposeCount, 1u );
}
// extract_min
}
gp.release();
ASSERT_TRUE( t.empty() );
- ASSERT_CONTAINER_SIZE( t, 0 );
+ ASSERT_CONTAINER_SIZE( t, 0u );
EXPECT_EQ( nCount, data.size() );
// Force retiring cycle
Tree::gc::force_dispose();
for ( auto& i : data ) {
- EXPECT_EQ( i.nDisposeCount, 1 );
+ EXPECT_EQ( i.nDisposeCount, 1u );
}
// extract_max
}
gp.release();
ASSERT_TRUE( t.empty() );
- ASSERT_CONTAINER_SIZE( t, 0 );
+ ASSERT_CONTAINER_SIZE( t, 0u );
EXPECT_EQ( nCount, data.size() );
// Force retiring cycle
Tree::gc::force_dispose();
for ( auto& i : data ) {
- EXPECT_EQ( i.nDisposeCount, 1 );
+ EXPECT_EQ( i.nDisposeCount, 1u );
}
}
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef CDSUNIT_TREE_TEST_INTRUSIVE_TREE_RCU_H
rcu_lock l;
value_type * p;
- EXPECT_EQ( i.nFindCount, 0 );
+ EXPECT_EQ( i.nFindCount, 0u );
p = t.get( i );
ASSERT_FALSE( !p );
++p->nFindCount;
- EXPECT_EQ( i.nFindCount, 1 );
+ EXPECT_EQ( i.nFindCount, 1u );
p = t.get( i.key() );
ASSERT_FALSE( !p );
++p->nFindCount;
- EXPECT_EQ( i.nFindCount, 2 );
+ EXPECT_EQ( i.nFindCount, 2u );
p = t.get_with( other_item( i.key() ), other_less() );
ASSERT_FALSE( !p );
++p->nFindCount;
- EXPECT_EQ( i.nFindCount, 3 );
+ EXPECT_EQ( i.nFindCount, 3u );
}
- EXPECT_EQ( i.nEraseCount, 0 );
+ EXPECT_EQ( i.nEraseCount, 0u );
switch ( i.key() % 3 ) {
case 0:
xp = t.extract( i.key());
}
ASSERT_FALSE( !xp );
++xp->nEraseCount;
- EXPECT_EQ( i.nEraseCount, 1 );
+ EXPECT_EQ( i.nEraseCount, 1u );
xp = t.extract( i );
ASSERT_TRUE( !xp );
}
ASSERT_TRUE( t.empty() );
- ASSERT_CONTAINER_SIZE( t, 0 );
+ ASSERT_CONTAINER_SIZE( t, 0u );
// Force retiring cycle
Tree::gc::force_dispose();
for ( auto& i : data ) {
- EXPECT_EQ( i.nDisposeCount, 1 );
+ EXPECT_EQ( i.nDisposeCount, 1u );
}
// extract_min
}
xp.release();
ASSERT_TRUE( t.empty() );
- ASSERT_CONTAINER_SIZE( t, 0 );
+ ASSERT_CONTAINER_SIZE( t, 0u );
EXPECT_EQ( nCount, data.size() );
// Force retiring cycle
Tree::gc::force_dispose();
for ( auto& i : data ) {
- EXPECT_EQ( i.nDisposeCount, 1 );
+ EXPECT_EQ( i.nDisposeCount, 1u );
}
// extract_max
}
xp.release();
ASSERT_TRUE( t.empty() );
- ASSERT_CONTAINER_SIZE( t, 0 );
+ ASSERT_CONTAINER_SIZE( t, 0u );
EXPECT_EQ( nCount, data.size() );
// Force retiring cycle
Tree::gc::force_dispose();
for ( auto& i : data ) {
- EXPECT_EQ( i.nDisposeCount, 1 );
+ EXPECT_EQ( i.nDisposeCount, 1u );
}
}
};
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef CDSUNIT_TREE_TEST_TREE_SET_RCU_H
break;
}
EXPECT_EQ( xp->key(), i.key() );
- EXPECT_EQ( xp->nFindCount, i.key() * 3 );
+ EXPECT_EQ( xp->nFindCount, static_cast<unsigned>( i.key() * 3 ));
}
xp.release();
break;
}
EXPECT_EQ( xp->key(), i.key() );
- EXPECT_EQ( xp->nFindCount, i.key() * 3 );
+ EXPECT_EQ( xp->nFindCount, static_cast<unsigned>( i.key() * 3 ));
switch ( idx % 3 ) {
case 0: