From 2f58f41d1a8c9140ae15cffbd498d57a1909e7e2 Mon Sep 17 00:00:00 2001 From: Lingfeng Yang Date: Wed, 22 May 2019 08:57:06 -0700 Subject: unbreak windows build windows msvc toolchain with werror and wconversion will break if converting long to DWORD. --- googletest/src/gtest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index 5998f9a..0da3cc2 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -1691,7 +1691,7 @@ AssertionResult HRESULTFailureHelper(const char* expr, char error_text[kBufSize] = { '\0' }; DWORD message_length = ::FormatMessageA(kFlags, 0, // no source, we're asking system - hr, // the error + static_cast(hr), // the error 0, // no line width restrictions error_text, // output buffer kBufSize, // buf size -- cgit v0.12