Fixed gcc warning
[libcds.git] / cds / intrusive / details / feldman_hashset_base.h
index 0cd2f7aab9956c071bbc8d5bdcf9b80c1c6e3844..ee40640e3aa59051391a4aa092756224fa3ed032 100644 (file)
@@ -402,7 +402,7 @@ namespace cds { namespace intrusive {
             >::type hash_comparator;
 
             /// The size of hash_type in bytes, see \p traits::hash_size for explanation
-            static CDS_CONSTEXPR size_t const c_hash_size = traits::hash_size == 0 ? sizeof( hash_type ) : traits::hash_size;
+            static CDS_CONSTEXPR size_t const c_hash_size = traits::hash_size == 0 ? sizeof( hash_type ) : static_cast<size_t>( traits::hash_size );
 
             typedef feldman_hashset::details::hash_splitter< hash_type, c_hash_size > hash_splitter;