mirror of
https://github.com/boostorg/functional.git
synced 2025-08-02 05:54:29 +02:00
Avoid a comparison with zero warning on gcc when compiling with -Wextra.
[SVN r38679]
This commit is contained in:
@@ -8,7 +8,7 @@ import testing ;
|
|||||||
project hash-tests
|
project hash-tests
|
||||||
: requirements
|
: requirements
|
||||||
<toolset>gcc:<define>_GLIBCXX_DEBUG
|
<toolset>gcc:<define>_GLIBCXX_DEBUG
|
||||||
<toolset>gcc:<cxxflags>-Wsign-promo
|
"<toolset>gcc:<cxxflags>-Wsign-promo -Wextra"
|
||||||
<toolset>msvc:<cxxflags>/W4
|
<toolset>msvc:<cxxflags>/W4
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@@ -106,7 +106,7 @@ namespace boost
|
|||||||
boost::static_log2<limits<T>::radix>::value - 1)
|
boost::static_log2<limits<T>::radix>::value - 1)
|
||||||
/ limits<std::size_t>::digits;
|
/ limits<std::size_t>::digits;
|
||||||
|
|
||||||
for(std::size_t i = 0; i < length; ++i)
|
for(std::size_t i = 0; i != length; ++i)
|
||||||
{
|
{
|
||||||
v = boost::hash_detail::call_ldexp(v, limits<std::size_t>::digits);
|
v = boost::hash_detail::call_ldexp(v, limits<std::size_t>::digits);
|
||||||
std::size_t part = static_cast<std::size_t>(v);
|
std::size_t part = static_cast<std::size_t>(v);
|
||||||
|
Reference in New Issue
Block a user