summaryrefslogtreecommitdiff
path: root/system_wrappers
diff options
context:
space:
mode:
Diffstat (limited to 'system_wrappers')
-rw-r--r--system_wrappers/source/thread_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/system_wrappers/source/thread_win.cc b/system_wrappers/source/thread_win.cc
index c68ee1ad..bcb95e7b 100644
--- a/system_wrappers/source/thread_win.cc
+++ b/system_wrappers/source/thread_win.cc
@@ -159,7 +159,7 @@ void ThreadWindows::Run() {
if (set_thread_name_) {
WEBRTC_TRACE(kTraceStateInfo, kTraceUtility, id_,
"Thread with name:%s started ", name_);
- SetThreadName(-1, name_); // -1, set thread name for the calling thread.
+ SetThreadName(static_cast<DWORD>(-1), name_); // -1 == caller thread.
} else {
WEBRTC_TRACE(kTraceStateInfo, kTraceUtility, id_,
"Thread without name started");