| Index: base/waitable_event_win.cc
|
| ===================================================================
|
| --- base/waitable_event_win.cc (revision 31316)
|
| +++ base/waitable_event_win.cc (working copy)
|
| @@ -82,8 +82,10 @@
|
| 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) {
|
|
|