Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2575)

Unified Diff: base/waitable_event_win.cc

Issue 360034: Add 64bit support. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/string_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « base/string_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698