mirror of
https://github.com/google/googletest.git
synced 2024-12-30 21:23:01 +08:00
unbreak windows build
windows msvc toolchain with werror and wconversion will break if converting long to DWORD.
This commit is contained in:
parent
f71fb4f9a9
commit
2f58f41d1a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user