From 1b0cdaae57c046c87fb99cb4f69c312a7e794adb Mon Sep 17 00:00:00 2001 From: dmauro Date: Fri, 5 Jun 2020 10:37:26 -0400 Subject: [PATCH] Googletest export Add missing static_cast to char32_t printer PiperOrigin-RevId: 314925583 --- googletest/src/gtest-printers.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/googletest/src/gtest-printers.cc b/googletest/src/gtest-printers.cc index ce1b2afc..20ce1b86 100644 --- a/googletest/src/gtest-printers.cc +++ b/googletest/src/gtest-printers.cc @@ -44,6 +44,7 @@ #include "gtest/gtest-printers.h" #include #include +#include #include #include // NOLINT #include @@ -253,7 +254,7 @@ void PrintTo(wchar_t wc, ostream* os) { void PrintTo(char32_t c, ::std::ostream* os) { *os << std::hex << "U+" << std::uppercase << std::setfill('0') << std::setw(4) - << c; + << static_cast(c); } // Prints the given array of characters to the ostream. CharType must be either