Fix a truncation warning on Windows 64-bit.

Bug: chromium:1292951
PiperOrigin-RevId: 482021281
Change-Id: I01c25dcb2dae82fcee25da00aefec4484f7c409d
pull/1115/head
Abseil Team 2 years ago committed by Copybara-Service
parent 24c32c7de2
commit ff10097441
  1. 3
      absl/log/stripping_test.cc

@ -215,7 +215,8 @@ class StrippingTest : public ::testing::Test {
#elif defined(_WIN32)
std::basic_string<TCHAR> path(4096, _T('\0'));
while (true) {
const uint32_t ret = ::GetModuleFileName(nullptr, &path[0], path.size());
const uint32_t ret = ::GetModuleFileName(nullptr, &path[0],
static_cast<DWORD>(path.size()));
if (ret == 0) {
absl::FPrintF(
stderr,

Loading…
Cancel
Save