|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68802 - trunk/boost
From: steven_at_[hidden]
Date: 2011-02-12 10:06:24
Author: steven_watanabe
Date: 2011-02-12 10:06:21 EST (Sat, 12 Feb 2011)
New Revision: 68802
URL: http://svn.boost.org/trac/boost/changeset/68802
Log:
Fix integer_traits<long long> when no macro from limits.h is available.
Text files modified:
trunk/boost/integer_traits.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/integer_traits.hpp
==============================================================================
--- trunk/boost/integer_traits.hpp (original)
+++ trunk/boost/integer_traits.hpp 2011-02-12 10:06:21 EST (Sat, 12 Feb 2011)
@@ -227,7 +227,7 @@
template<>
class integer_traits< ::boost::long_long_type>
: public std::numeric_limits< ::boost::long_long_type>,
- public detail::integer_traits_base< ::boost::long_long_type, (1LL << (sizeof(::boost::long_long_type) - 1)), ~(1LL << (sizeof(::boost::long_long_type) - 1))>
+ public detail::integer_traits_base< ::boost::long_long_type, (1LL << (sizeof(::boost::long_long_type) * CHAR_BIT - 1)), ~(1LL << (sizeof(::boost::long_long_type) * CHAR_BIT - 1))>
{ };
template<>
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