From: khizmax Date: Tue, 30 May 2017 19:13:08 +0000 (+0300) Subject: Fixed ambiguous ceil2() call in 32bit target X-Git-Tag: v2.3.0~12 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=05b9dfa003e69c9a3d35480750d7d59f8bae5ca4;p=libcds.git Fixed ambiguous ceil2() call in 32bit target --- diff --git a/cds/algo/flat_combining/kernel.h b/cds/algo/flat_combining/kernel.h index 202293b4..ea051693 100644 --- a/cds/algo/flat_combining/kernel.h +++ b/cds/algo/flat_combining/kernel.h @@ -284,7 +284,7 @@ namespace cds { namespace algo { , m_pHead( nullptr ) , m_pAllocatedHead( nullptr ) , m_pThreadRec( tls_cleanup ) - , m_nCompactFactor( (unsigned int)( cds::beans::ceil2( nCompactFactor ) - 1 )) // binary mask + , m_nCompactFactor( static_cast( cds::beans::ceil2( static_cast( nCompactFactor )) - 1 )) // binary mask , m_nCombinePassCount( nCombinePassCount ) { assert( m_pThreadRec.get() == nullptr );