We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f71fb4f commit 2f58f41Copy full SHA for 2f58f41
googletest/src/gtest.cc
@@ -1691,7 +1691,7 @@ AssertionResult HRESULTFailureHelper(const char* expr,
1691
char error_text[kBufSize] = { '\0' };
1692
DWORD message_length = ::FormatMessageA(kFlags,
1693
0, // no source, we're asking system
1694
- hr, // the error
+ static_cast<DWORD>(hr), // the error
1695
0, // no line width restrictions
1696
error_text, // output buffer
1697
kBufSize, // buf size
0 commit comments