summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgennadiycivil <misterg@google.com>2019-05-23 16:20:24 -0400
committergennadiycivil <misterg@google.com>2019-05-23 16:20:24 -0400
commit7f1c0f6f8122d7978c9de29d9d468f7fac9ba62c (patch)
treee168225a42847d3cbdd7345302bff50a69498bd4
parent88f0493098c8d9fd0f096c2158a0e56deb952d53 (diff)
parent2f58f41d1a8c9140ae15cffbd498d57a1909e7e2 (diff)
downloadgoogletest-7f1c0f6f8122d7978c9de29d9d468f7fac9ba62c.tar.gz
googletest-7f1c0f6f8122d7978c9de29d9d468f7fac9ba62c.zip
Merge pull request #2260 from 741g:master
PiperOrigin-RevId: 249660276
-rw-r--r--googletest/src/gtest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
index 5998f9a3..0da3cc20 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<DWORD>(hr), // the error
0, // no line width restrictions
error_text, // output buffer
kBufSize, // buf size
OpenPOWER on IntegriCloud