From ff100974413ccdd24b361ff9eb7cc78efb0cee78 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 18 Oct 2022 14:21:41 -0700 Subject: Fix a truncation warning on Windows 64-bit. Bug: chromium:1292951 PiperOrigin-RevId: 482021281 Change-Id: I01c25dcb2dae82fcee25da00aefec4484f7c409d --- absl/log/stripping_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'absl/log/stripping_test.cc') diff --git a/absl/log/stripping_test.cc b/absl/log/stripping_test.cc index f37a0c55..83dfc2dc 100644 --- a/absl/log/stripping_test.cc +++ b/absl/log/stripping_test.cc @@ -215,7 +215,8 @@ class StrippingTest : public ::testing::Test { #elif defined(_WIN32) std::basic_string 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(path.size())); if (ret == 0) { absl::FPrintF( stderr, -- cgit v1.2.3