From c42f01fa03fd1716fe3332790c80934648d89ba2 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 14 Dec 2006 12:03:33 +0000 Subject: [PATCH] port to Borland C++Builder 2006 --- trunk/c5/wait.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/c5/wait.cpp b/trunk/c5/wait.cpp index 4e9ed23e..19878583 100644 --- a/trunk/c5/wait.cpp +++ b/trunk/c5/wait.cpp @@ -236,7 +236,7 @@ bool WaitObjectContainer::Wait(unsigned long milliseconds) { // too many wait objects for a single WaitForMultipleObjects call, so use multiple threads static const unsigned int WAIT_OBJECTS_PER_THREAD = MAXIMUM_WAIT_OBJECTS-1; - unsigned int nThreads = unsigned int((m_handles.size() + WAIT_OBJECTS_PER_THREAD - 1) / WAIT_OBJECTS_PER_THREAD); + unsigned int nThreads = (unsigned int)((m_handles.size() + WAIT_OBJECTS_PER_THREAD - 1) / WAIT_OBJECTS_PER_THREAD); if (nThreads > MAXIMUM_WAIT_OBJECTS) // still too many wait objects, maybe implement recursive threading later? throw Err("WaitObjectContainer: number of wait objects exceeds limit"); CreateThreads(nThreads); @@ -250,7 +250,7 @@ bool WaitObjectContainer::Wait(unsigned long milliseconds) if (i