unbreak windows build

windows msvc toolchain with werror and wconversion
will break if converting long to DWORD.
This commit is contained in:
Lingfeng Yang 2019-05-22 08:57:06 -07:00
parent f71fb4f9a9
commit 2f58f41d1a

View File

@ -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