Skip to content

Commit 2f58f41

Browse files
committed
unbreak windows build
windows msvc toolchain with werror and wconversion will break if converting long to DWORD.
1 parent f71fb4f commit 2f58f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

googletest/src/gtest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ AssertionResult HRESULTFailureHelper(const char* expr,
16911691
char error_text[kBufSize] = { '\0' };
16921692
DWORD message_length = ::FormatMessageA(kFlags,
16931693
0, // no source, we're asking system
1694-
hr, // the error
1694+
static_cast<DWORD>(hr), // the error
16951695
0, // no line width restrictions
16961696
error_text, // output buffer
16971697
kBufSize, // buf size

0 commit comments

Comments
 (0)