Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57939 - trunk/boost/xpressive/traits
From: eric_at_[hidden]
Date: 2009-11-26 03:38:51


Author: eric_niebler
Date: 2009-11-26 03:38:50 EST (Thu, 26 Nov 2009)
New Revision: 57939
URL: http://svn.boost.org/trac/boost/changeset/57939

Log:
eliminate warning on darwin-4.2.1 toolset
Text files modified:
   trunk/boost/xpressive/traits/cpp_regex_traits.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/xpressive/traits/cpp_regex_traits.hpp
==============================================================================
--- trunk/boost/xpressive/traits/cpp_regex_traits.hpp (original)
+++ trunk/boost/xpressive/traits/cpp_regex_traits.hpp 2009-11-26 03:38:50 EST (Thu, 26 Nov 2009)
@@ -81,7 +81,7 @@
 
     #ifndef BOOST_XPRESSIVE_BUGGY_CTYPE_FACET
     // an unsigned integer with the highest bit set
- umaskex_t const highest_bit = 1 << (sizeof(umaskex_t) * CHAR_BIT - 1);
+ umaskex_t const highest_bit = static_cast<umaskex_t>(1) << (sizeof(umaskex_t) * CHAR_BIT - 1);
 
     ///////////////////////////////////////////////////////////////////////////////
     // unused_mask


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