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

Unified Diff: base/waitable_event_posix.cc

Issue 18122: Mac build fix (Closed)
Patch Set: Created 11 years, 11 months 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/waitable_event.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/waitable_event_posix.cc
diff --git a/base/waitable_event_posix.cc b/base/waitable_event_posix.cc
index f0a77fa720d72e6e2fc88ee71d5d5a466f2b8086..335f13efbfd5e01a08da462f3209ae21d4987684 100644
--- a/base/waitable_event_posix.cc
+++ b/base/waitable_event_posix.cc
@@ -302,9 +302,9 @@ size_t WaitableEvent::WaitMany(WaitableEvent** raw_waitables,
// which was signaled, from the end of the array.
// -----------------------------------------------------------------------------
// static
-unsigned WaitableEvent::EnqueueMany
+size_t WaitableEvent::EnqueueMany
(std::pair<WaitableEvent*, size_t>* waitables,
- unsigned count, Waiter* waiter) {
+ size_t count, Waiter* waiter) {
if (!count)
return 0;
@@ -316,7 +316,7 @@ unsigned WaitableEvent::EnqueueMany
return count;
}
- const unsigned r = EnqueueMany(waitables + 1, count - 1, waiter);
+ const size_t r = EnqueueMany(waitables + 1, count - 1, waiter);
if (r) {
waitables[0].first->lock_.Release();
} else {
« no previous file with comments | « base/waitable_event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698