From d795614ec4a60ee8624aada70f13b7a69f09b46e Mon Sep 17 00:00:00 2001 From: Bradley White <14679271+devbww@users.noreply.github.com> Date: Tue, 28 Jun 2022 12:23:18 -0400 Subject: [PATCH] impl: fix build for Windows+x86 Add a cast to the `int64_t`-to-`size_t` conversion from #9351. --- google/cloud/internal/log_wrapper.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google/cloud/internal/log_wrapper.cc b/google/cloud/internal/log_wrapper.cc index f3b43d4c736f9..176dd2fcc0395 100644 --- a/google/cloud/internal/log_wrapper.cc +++ b/google/cloud/internal/log_wrapper.cc @@ -100,7 +100,8 @@ std::string DebugString(Status const& status, TracingOptions const& options) { } std::string DebugString(std::string s, TracingOptions const& options) { - std::size_t const pos = options.truncate_string_field_longer_than(); + auto const pos = + static_cast(options.truncate_string_field_longer_than()); if (s.size() > pos) s.replace(pos, std::string::npos, "......"); return s; }