Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86400 - trunk/boost/sync/detail/semaphore
From: tim_at_[hidden]
Date: 2013-10-22 16:07:27


Author: timblechmann
Date: 2013-10-22 16:07:27 EDT (Tue, 22 Oct 2013)
New Revision: 86400
URL: http://svn.boost.org/trac/boost/changeset/86400

Log:
semaphore: mach - c++11/clang fixes

Text files modified:
   trunk/boost/sync/detail/semaphore/basic_semaphore_mach.hpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: trunk/boost/sync/detail/semaphore/basic_semaphore_mach.hpp
==============================================================================
--- trunk/boost/sync/detail/semaphore/basic_semaphore_mach.hpp Tue Oct 22 16:07:08 2013 (r86399)
+++ trunk/boost/sync/detail/semaphore/basic_semaphore_mach.hpp 2013-10-22 16:07:27 EDT (Tue, 22 Oct 2013) (r86400)
@@ -110,9 +110,10 @@
 
         const mach_timespec_t wait_time =
         {
- time_left_sec,
- static_cast< uint64_t >(nanoseconds_fraction) >= sync::detail::system_duration::subsecond_fraction ?
- time_left_subsec / conversion_ratio : time_left_subsec * conversion_ratio
+ static_cast< unsigned int >( time_left_sec ),
+ static_cast< uint64_t >( nanoseconds_fraction ) >= sync::detail::system_duration::subsecond_fraction ?
+ static_cast< clock_res_t >( time_left_subsec / conversion_ratio)
+ : static_cast< clock_res_t >( time_left_subsec * conversion_ratio)
         };
 
         return priv_timed_wait(wait_time);


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