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

Unified Diff: ipc/ipc_perftest_support.cc

Issue 1422773008: Fixing remaining VC++ 2015 64-bit build breaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to latest Created 5 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
Index: ipc/ipc_perftest_support.cc
diff --git a/ipc/ipc_perftest_support.cc b/ipc/ipc_perftest_support.cc
index 3af0a1fa948bc567962d8be9c66323f5bc1bd746..2ece5e1f11f10c43dc8ee749332d4b13e04d132f 100644
--- a/ipc/ipc_perftest_support.cc
+++ b/ipc/ipc_perftest_support.cc
@@ -348,7 +348,7 @@ scoped_refptr<base::TaskRunner> PingPongTestClient::task_runner() {
LockThreadAffinity::LockThreadAffinity(int cpu_number)
: affinity_set_ok_(false) {
#if defined(OS_WIN)
- const DWORD_PTR thread_mask = 1 << cpu_number;
+ const DWORD_PTR thread_mask = static_cast<DWORD_PTR>(1) << cpu_number;
Will Harris 2015/11/10 18:05:14 will 1U work instead? seems bizarre to cast a lite
brucedawson 2015/11/10 18:43:26 I asked this on c-users. I could use 1LLU but that
Will Harris 2015/11/10 19:45:45 okay. makes sense.
old_affinity_ = SetThreadAffinityMask(GetCurrentThread(), thread_mask);
affinity_set_ok_ = old_affinity_ != 0;
#elif defined(OS_LINUX)

Powered by Google App Engine
This is Rietveld 408576698