Fixed minor gcc warnings
[libcds.git] / test / stress / pqueue / push.cpp
index 95e23aa0cd0a94a8765bc5e393677257608944c9..eb5b0813b6cf5e3560c2572ed1ce238be1db9df7 100644 (file)
@@ -94,7 +94,7 @@ namespace pqueue {
 
             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());
 
@@ -153,9 +153,9 @@ namespace pqueue {
             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;
         }