Avoid a comparison with zero warning on gcc when compiling with -Wextra.

[SVN r38679]
This commit is contained in:
Daniel James
2007-08-15 14:35:39 +00:00
parent 59064fed23
commit 567290d703
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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
;