From: khizmax Date: Sun, 13 Nov 2016 19:32:35 +0000 (+0300) Subject: Fixed gcc warning X-Git-Tag: v2.2.0~67 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fd49bd6ba464b8bedc748a89ad6d44d684ea1a33;p=libcds.git Fixed gcc warning --- diff --git a/cds/intrusive/details/feldman_hashset_base.h b/cds/intrusive/details/feldman_hashset_base.h index 0cd2f7aa..ee40640e 100644 --- a/cds/intrusive/details/feldman_hashset_base.h +++ b/cds/intrusive/details/feldman_hashset_base.h @@ -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( traits::hash_size ); typedef feldman_hashset::details::hash_splitter< hash_type, c_hash_size > hash_splitter;