Fixed some minor compiler warnings
[libcds.git] / test / unit / map / test_feldman_hashmap.h
index 2c1524f523e65040c423093e3adbca8ff9fbd4f0..548040fb23318ae962f51314fb0d3b081f3c159e 100644 (file)
@@ -51,7 +51,7 @@ namespace cds_test {
 
             explicit key_type2( int n )
                 : nKey( n )
-                , subkey( )
+                , subkey( static_cast<uint16_t>( n ))
             {}
 
             explicit key_type2( size_t n )
@@ -61,7 +61,7 @@ namespace cds_test {
 
             explicit key_type2( std::string const& str )
                 : nKey( std::stoi( str ))
-                , subkey( nKey )
+                , subkey( static_cast<uint16_t>( nKey ))
             {}
 
             key_type2( key_type2 const& s )