Boost logo

Boost :

From: larsbj_at_[hidden]
Date: 2002-01-11 10:27:29


With GCC I have to do this change to make timeconv.inl compile without
warnings.

--- boost/libs/thread/src/timeconv.inl Tue Nov 6 17:06:41 2001
+++ new/boost/libs/thread/src/timeconv.inl Fri Jan 11 16:03:10 2002
@@ -35,7 +35,7 @@
     {
         ts.tv_sec = static_cast<int>(xt.sec);
         ts.tv_nsec = static_cast<int>(xt.nsec);
- if(ts.tv_nsec > NANOSECONDS_PER_SECOND)
+ if(ts.tv_nsec > static_cast<const int>(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 > NANOSECONDS_PER_SECOND)
+ if(ts.tv_nsec > static_cast<const int>(NANOSECONDS_PER_SECOND))
            {
                ts.tv_sec += ts.tv_nsec / NANOSECONDS_PER_SECOND;
                ts.tv_nsec %= NANOSECONDS_PER_SECOND;

btw. William Kempfs e-mail address is not in the peoples section.
     (and I do not store more than the last week of mail in mailing lists)

-- 
	Lgb

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk