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

Unified Diff: webrtc/base/systeminfo.cc

Issue 1510233002: clang/win: Fix -Wextra warnings in webrtc. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: backto1 Created 5 years 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 | « webrtc/base/sec_buffer.h ('k') | webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/systeminfo.cc
diff --git a/webrtc/base/systeminfo.cc b/webrtc/base/systeminfo.cc
index bfc96b3763501214ee197ff65cf1edd4d8f5168c..b400aa08a8395d8c4edff3c7150a6ae14ff269ee 100644
--- a/webrtc/base/systeminfo.cc
+++ b/webrtc/base/systeminfo.cc
@@ -110,7 +110,7 @@ int SystemInfo::GetCurCpus() {
DWORD_PTR process_mask = 0;
DWORD_PTR system_mask = 0;
::GetProcessAffinityMask(::GetCurrentProcess(), &process_mask, &system_mask);
- for (int i = 0; i < sizeof(DWORD_PTR) * 8; ++i) {
+ for (size_t i = 0; i < sizeof(DWORD_PTR) * 8; ++i) {
if (process_mask & 1)
++cur_cpus;
process_mask >>= 1;
« no previous file with comments | « webrtc/base/sec_buffer.h ('k') | webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698