|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86219 - trunk/boost/sync/support
From: andrey.semashev_at_[hidden]
Date: 2013-10-09 14:26:48
Author: andysem
Date: 2013-10-09 14:26:48 EDT (Wed, 09 Oct 2013)
New Revision: 86219
URL: http://svn.boost.org/trac/boost/changeset/86219
Log:
Resolved warnings.
Text files modified:
trunk/boost/sync/support/boost_date_time.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/sync/support/boost_date_time.hpp
==============================================================================
--- trunk/boost/sync/support/boost_date_time.hpp Wed Oct 9 14:09:40 2013 (r86218)
+++ trunk/boost/sync/support/boost_date_time.hpp 2013-10-09 14:26:48 EDT (Wed, 09 Oct 2013) (r86219)
@@ -43,11 +43,11 @@
typedef typename T::traits_type traits_type;
enum
{
- conversion_ratio = traits_type::ticks_per_second >= system_duration::subsecond_fraction ?
+ conversion_ratio = static_cast< uint64_t >(traits_type::ticks_per_second) >= system_duration::subsecond_fraction ?
traits_type::ticks_per_second / system_duration::subsecond_fraction :
system_duration::subsecond_fraction / traits_type::ticks_per_second
};
- return system_duration(traits_type::ticks_per_second >= system_duration::subsecond_fraction ?
+ return system_duration(static_cast< uint64_t >(traits_type::ticks_per_second) >= system_duration::subsecond_fraction ?
dur.ticks() / conversion_ratio : dur.ticks() * conversion_ratio);
}
};
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