|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72303 - trunk/boost/thread/win32
From: anthony_at_[hidden]
Date: 2011-05-31 08:28:12
Author: anthonyw
Date: 2011-05-31 08:28:11 EDT (Tue, 31 May 2011)
New Revision: 72303
URL: http://svn.boost.org/trac/boost/changeset/72303
Log:
Change pin_to_zero and interruptible_wait to use (u)intmax_t rather than (unsigned) long, to avoid warnings about truncation
Text files modified:
trunk/boost/thread/win32/thread_data.hpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/boost/thread/win32/thread_data.hpp
==============================================================================
--- trunk/boost/thread/win32/thread_data.hpp (original)
+++ trunk/boost/thread/win32/thread_data.hpp 2011-05-31 08:28:11 EDT (Tue, 31 May 2011)
@@ -145,9 +145,9 @@
{}
};
- inline unsigned long pin_to_zero(long value)
+ inline uintmax_t pin_to_zero(intmax_t value)
{
- return (value<0)?0u:(unsigned long)value;
+ return (value<0)?0u:(uintmax_t)value;
}
}
@@ -156,7 +156,7 @@
void BOOST_THREAD_DECL yield();
bool BOOST_THREAD_DECL interruptible_wait(detail::win32::handle handle_to_wait_for,detail::timeout target_time);
- inline void interruptible_wait(unsigned long milliseconds)
+ inline void interruptible_wait(uintmax_t milliseconds)
{
interruptible_wait(detail::win32::invalid_handle_value,milliseconds);
}
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