From 05b9dfa003e69c9a3d35480750d7d59f8bae5ca4 Mon Sep 17 00:00:00 2001 From: khizmax Date: Tue, 30 May 2017 22:13:08 +0300 Subject: [PATCH] Fixed ambiguous ceil2() call in 32bit target --- cds/algo/flat_combining/kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.34.1