Boost logo

Boost-Commit :

From: doomster_at_[hidden]
Date: 2008-04-30 09:26:40


Author: eckhardt
Date: 2008-04-30 09:26:39 EDT (Wed, 30 Apr 2008)
New Revision: 44928
URL: http://svn.boost.org/trac/boost/changeset/44928

Log:
- Replace UINTMAX_C(~0) with static_cast<boost::uintmax_t>(-1).

Text files modified:
   sandbox/compile-in-place/Boost_1_35_0/libs/thread/src/pthread/once.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/compile-in-place/Boost_1_35_0/libs/thread/src/pthread/once.cpp
==============================================================================
--- sandbox/compile-in-place/Boost_1_35_0/libs/thread/src/pthread/once.cpp (original)
+++ sandbox/compile-in-place/Boost_1_35_0/libs/thread/src/pthread/once.cpp 2008-04-30 09:26:39 EDT (Wed, 30 Apr 2008)
@@ -13,7 +13,7 @@
 {
     namespace detail
     {
- BOOST_THREAD_DECL boost::uintmax_t once_global_epoch=UINTMAX_C(~0);
+ BOOST_THREAD_DECL boost::uintmax_t once_global_epoch = static_cast<boost::uintmax_t>(-1);
         BOOST_THREAD_DECL pthread_mutex_t once_epoch_mutex=PTHREAD_MUTEX_INITIALIZER;
         BOOST_THREAD_DECL pthread_cond_t once_epoch_cv = PTHREAD_COND_INITIALIZER;
 
@@ -42,7 +42,7 @@
             {
                 data=malloc(sizeof(boost::uintmax_t));
                 BOOST_VERIFY(!pthread_setspecific(epoch_tss_key,data));
- *static_cast<boost::uintmax_t*>(data)=UINTMAX_C(~0);
+ *static_cast<boost::uintmax_t*>(data) = static_cast<boost::uintmax_t>(-1);
             }
             return *static_cast<boost::uintmax_t*>(data);
         }


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