From be3077e2036f90f0c550659cdf4352ae3768c1e8 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 1 Sep 2009 12:24:08 +0000 Subject: [PATCH] Fix warnings emitted by gcc when building with -Wall -Wextra. Fixes #3381. [SVN r55957] --- include/boost/type_traits/is_signed.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/type_traits/is_signed.hpp b/include/boost/type_traits/is_signed.hpp index 73389a1..e06b47c 100644 --- a/include/boost/type_traits/is_signed.hpp +++ b/include/boost/type_traits/is_signed.hpp @@ -30,7 +30,7 @@ template struct is_signed_helper { typedef typename remove_cv::type no_cv_t; - BOOST_STATIC_CONSTANT(bool, value = (static_cast(-1) < 0)); + BOOST_STATIC_CONSTANT(bool, value = (!(static_cast(-1) > 0))); }; template