forked from boostorg/container_hash
Avoid a comparison with zero warning on gcc when compiling with -Wextra.
[SVN r38679]
This commit is contained in:
@@ -106,7 +106,7 @@ namespace boost
|
||||
boost::static_log2<limits<T>::radix>::value - 1)
|
||||
/ 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);
|
||||
std::size_t part = static_cast<std::size_t>(v);
|
||||
|
@@ -8,7 +8,7 @@ import testing ;
|
||||
project hash-tests
|
||||
: requirements
|
||||
<toolset>gcc:<define>_GLIBCXX_DEBUG
|
||||
<toolset>gcc:<cxxflags>-Wsign-promo
|
||||
"<toolset>gcc:<cxxflags>-Wsign-promo -Wextra"
|
||||
<toolset>msvc:<cxxflags>/W4
|
||||
;
|
||||
|
||||
|
Reference in New Issue
Block a user