summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/Thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceUtil/Thread.cpp')
-rw-r--r--cpp/src/IceUtil/Thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/IceUtil/Thread.cpp b/cpp/src/IceUtil/Thread.cpp
index a54cbee22cb..75f6cb3e7d0 100644
--- a/cpp/src/IceUtil/Thread.cpp
+++ b/cpp/src/IceUtil/Thread.cpp
@@ -152,7 +152,7 @@ WINAPI startHook(void* arg)
// Windows (the rand() seed is thread specific).
//
unsigned int seed = static_cast<unsigned int>(IceUtil::Time::now().toMicroSeconds());
- srand(seed ^ hash<thread::id>()(thread->getThreadControl().id()));
+ srand(seed ^ static_cast<unsigned int>(hash<thread::id>()(thread->getThreadControl().id())));
//
// See the comment in IceUtil::Thread::start() for details.