summaryrefslogtreecommitdiffstats
path: root/base/waitable_event_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/waitable_event_win.cc')
-rw-r--r--base/waitable_event_win.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/waitable_event_win.cc b/base/waitable_event_win.cc
index 21ee0a9..d063b3f 100644
--- a/base/waitable_event_win.cc
+++ b/base/waitable_event_win.cc
@@ -82,8 +82,10 @@ size_t WaitableEvent::WaitMany(WaitableEvent** events, size_t count) {
for (size_t i = 0; i < count; ++i)
handles[i] = events[i]->handle();
+ // The cast is safe because count is small - see the CHECK above.
DWORD result =
- WaitForMultipleObjects(count, handles,
+ WaitForMultipleObjects(static_cast<DWORD>(count),
+ handles,
FALSE, // don't wait for all the objects
INFINITE); // no timeout
if (result >= WAIT_OBJECT_0 + count) {