summaryrefslogtreecommitdiffstats
path: root/googletest/src/gtest-port.cc
diff options
context:
space:
mode:
authorEnji Cooper <yaneurabeya@gmail.com>2019-04-26 10:59:54 (GMT)
committerEnji Cooper <yaneurabeya@gmail.com>2019-04-26 11:08:16 (GMT)
commitbd47c09b73d40f210238b73f925a8f9196e70675 (patch)
tree624f15a4435e8684042cd2004bd0df57aeaaa374 /googletest/src/gtest-port.cc
parent84d986531e8df9fb6ea4a7bae8fb130c05b3782c (diff)
downloadgoogletest-bd47c09b73d40f210238b73f925a8f9196e70675.zip
googletest-bd47c09b73d40f210238b73f925a8f9196e70675.tar.gz
googletest-bd47c09b73d40f210238b73f925a8f9196e70675.tar.bz2
Address fallout from -Wsign-conversion work on Windowsrefs/pull/2241/head
Some Windows users builds were broken after a0d60be. This change addresses the lingering -Wsign-conversion issues with those platforms by adding some missing `static_cast` calls as needed. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
Diffstat (limited to 'googletest/src/gtest-port.cc')
-rw-r--r--googletest/src/gtest-port.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/src/gtest-port.cc b/googletest/src/gtest-port.cc
index e5b91fd..4015a1c 100644
--- a/googletest/src/gtest-port.cc
+++ b/googletest/src/gtest-port.cc
@@ -279,7 +279,7 @@ size_t GetThreadCount() {
#if GTEST_IS_THREADSAFE && GTEST_OS_WINDOWS
void SleepMilliseconds(int n) {
- ::Sleep(n);
+ ::Sleep(static_cast<DWORD>(n));
}
AutoHandle::AutoHandle()