summaryrefslogtreecommitdiff
path: root/absl/log
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2022-10-18 14:21:41 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-10-18 14:22:34 -0700
commitff100974413ccdd24b361ff9eb7cc78efb0cee78 (patch)
tree401bab9ad27ae11bf9655145b32ea314cc3fde53 /absl/log
parent24c32c7de239a2d4c81f67d7eb241c0c4aa38a63 (diff)
Fix a truncation warning on Windows 64-bit.
Bug: chromium:1292951 PiperOrigin-RevId: 482021281 Change-Id: I01c25dcb2dae82fcee25da00aefec4484f7c409d
Diffstat (limited to 'absl/log')
-rw-r--r--absl/log/stripping_test.cc3
1 files changed, 2 insertions, 1 deletions
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<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,