Fixed compiler warnings
authorkhizmax <libcds.dev@gmail.com>
Sun, 5 Mar 2017 18:37:25 +0000 (21:37 +0300)
committerkhizmax <libcds.dev@gmail.com>
Sun, 5 Mar 2017 18:37:25 +0000 (21:37 +0300)
test/unit/intrusive-set/test_intrusive_feldman_hashset_rcu.h
test/unit/misc/split_bitstring.cpp

index 0cb5dd2fddf330469541965710d718685f99941f..1cce7d049fa43943db358989072625e182fa8032 100644 (file)
@@ -255,7 +255,7 @@ TYPED_TEST_P( IntrusiveFeldmanHashSet, byte_cut )
     typedef ci::FeldmanHashSet< typename TestFixture::rcu_type, typename TestFixture::int_item, traits > set_type;
 
     set_type s( 8, 8 );
-    test( s );
+    this->test( s );
 }
 
 TYPED_TEST_P( IntrusiveFeldmanHashSet, byte_cut_explicit_hash_size )
@@ -275,7 +275,7 @@ TYPED_TEST_P( IntrusiveFeldmanHashSet, byte_cut_explicit_hash_size )
     typedef ci::FeldmanHashSet< typename TestFixture::rcu_type, typename TestFixture::int_item2, traits > set_type;
 
     set_type s( 8, 8 );
-    test( s );
+    this->test( s );
 }
 
 // GCC 5: All test names should be written on single line, otherwise a runtime error will be encountered like as
index 60531cb4854ea282181c93b90ae14e838cc23c57..360fd3d2bf1322305bf7c1dae12e21bf05e8818c 100644 (file)
@@ -698,7 +698,7 @@ namespace {
 
             // split by hex digit
             for ( unsigned count = 4; count < sizeof( Int ) * 8; count += 4 ) {
-                EXPECT_EQ( splitter.cut( 4 ), count / 4 - 1 );
+                EXPECT_EQ( splitter.cut( 4 ), static_cast<Int>( count / 4 - 1 ));
             }
 
             // random cut