diff options
author | gregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 23:24:09 +0000 |
---|---|---|
committer | gregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 23:24:09 +0000 |
commit | 81a7e67a0dbb0133f5c016d3eb04ed1116ba6717 (patch) | |
tree | 364fc864b112b61557576df2981fb31215425344 /base/waitable_event_win.cc | |
parent | 51383375ef135f7f2f3b87ab58b28272e7e9d807 (diff) | |
download | chromium_src-81a7e67a0dbb0133f5c016d3eb04ed1116ba6717.zip chromium_src-81a7e67a0dbb0133f5c016d3eb04ed1116ba6717.tar.gz chromium_src-81a7e67a0dbb0133f5c016d3eb04ed1116ba6717.tar.bz2 |
Add 64bit support
This CL is part of a larger effort to add support for Native Client on 64-bit Windows.
Review URL: http://codereview.chromium.org/360034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/waitable_event_win.cc')
-rw-r--r-- | base/waitable_event_win.cc | 4 |
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) { |