Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77109 - trunk/boost
From: john_at_[hidden]
Date: 2012-02-24 11:57:13


Author: johnmaddock
Date: 2012-02-24 11:57:13 EST (Fri, 24 Feb 2012)
New Revision: 77109
URL: http://svn.boost.org/trac/boost/changeset/77109

Log:
Apply patch from Vincent Botet Escriba: fix check for size > long long.
Text files modified:
   trunk/boost/integer.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/integer.hpp
==============================================================================
--- trunk/boost/integer.hpp (original)
+++ trunk/boost/integer.hpp 2012-02-24 11:57:13 EST (Fri, 24 Feb 2012)
@@ -114,7 +114,7 @@
       typedef typename detail::int_least_helper
         <
 #ifdef BOOST_HAS_LONG_LONG
- (Bits-1 <= (int)(sizeof(boost::long_long_type) * CHAR_BIT)) +
+ (Bits <= (int)(sizeof(boost::long_long_type) * CHAR_BIT)) +
 #else
            1 +
 #endif
@@ -144,7 +144,7 @@
         <
           5 +
 #ifdef BOOST_HAS_LONG_LONG
- (Bits-1 <= (int)(sizeof(boost::long_long_type) * CHAR_BIT)) +
+ (Bits <= (int)(sizeof(boost::long_long_type) * CHAR_BIT)) +
 #else
            1 +
 #endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk