Fix warnings emitted by gcc when building with -Wall -Wextra.

Fixes #3381.

[SVN r55957]
This commit is contained in:
John Maddock
2009-09-01 12:24:08 +00:00
parent fcc974dd99
commit be3077e203

View File

@ -30,7 +30,7 @@ template <class T>
struct is_signed_helper
{
typedef typename remove_cv<T>::type no_cv_t;
BOOST_STATIC_CONSTANT(bool, value = (static_cast<no_cv_t>(-1) < 0));
BOOST_STATIC_CONSTANT(bool, value = (!(static_cast<no_cv_t>(-1) > 0)));
};
template <bool integral_type>