|
Boost-Commit : |
From: anthony_at_[hidden]
Date: 2008-05-09 03:49:22
Author: anthonyw
Date: 2008-05-09 03:49:22 EDT (Fri, 09 May 2008)
New Revision: 45243
URL: http://svn.boost.org/trac/boost/changeset/45243
Log:
Fixed type truncation warning
Text files modified:
trunk/boost/thread/pthread/timespec.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/thread/pthread/timespec.hpp
==============================================================================
--- trunk/boost/thread/pthread/timespec.hpp (original)
+++ trunk/boost/thread/pthread/timespec.hpp 2008-05-09 03:49:22 EDT (Fri, 09 May 2008)
@@ -19,7 +19,7 @@
boost::posix_time::time_duration const time_since_epoch=abs_time-boost::posix_time::from_time_t(0);
timeout.tv_sec=time_since_epoch.total_seconds();
- timeout.tv_nsec=time_since_epoch.fractional_seconds()*(1000000000/time_since_epoch.ticks_per_second());
+ timeout.tv_nsec=(long)(time_since_epoch.fractional_seconds()*(1000000000l/time_since_epoch.ticks_per_second()));
return timeout;
}
}
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