Skip to content

Commit 053b748

Browse files
authored
Update sysinfo.cc to fix compilation on windows (#2008)
Fixes #2007
1 parent b20cea6 commit 053b748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sysinfo.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ std::string GetSystemName() {
461461
DWCOUNT, NULL, 0, NULL, NULL);
462462
str.resize(len);
463463
WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, hostname, DWCOUNT, &str[0],
464-
str.size(), NULL, NULL);
464+
static_cast<int>(str.size()), NULL, NULL);
465465
#endif
466466
return str;
467467
#elif defined(BENCHMARK_OS_QURT)

0 commit comments

Comments
 (0)