|
Boost : |
From: larsbj_at_[hidden]
Date: 2001-11-09 20:36:25
These changes to avoid signed/unsigned warnings:
(the patch is reversed, sorry about that)
+++ boost/libs/thread/src/timeconv.inl Tue Nov 6 17:06:41 2001
@@ -35,7 +35,7 @@
{
ts.tv_sec = static_cast<int>(xt.sec);
ts.tv_nsec = static_cast<int>(xt.nsec);
- if(ts.tv_nsec > static_cast<const int>(NANOSECONDS_PER_SECOND))
+ if(ts.tv_nsec > NANOSECONDS_PER_SECOND)
{
ts.tv_sec += ts.tv_nsec / NANOSECONDS_PER_SECOND;
ts.tv_nsec %= NANOSECONDS_PER_SECOND;
@@ -71,7 +71,7 @@
ts.tv_sec -= 1;
ts.tv_nsec += NANOSECONDS_PER_SECOND;
}
- if(ts.tv_nsec > static_cast<const int>(NANOSECONDS_PER_SECOND))
+ if(ts.tv_nsec > NANOSECONDS_PER_SECOND)
{
ts.tv_sec += ts.tv_nsec / NANOSECONDS_PER_SECOND;
ts.tv_nsec %= NANOSECONDS_PER_SECOND;
-- Lgb
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk