Skip to content

Commit 9410cb8

Browse files
committed
apply patch from upstream
1 parent d2c70f0 commit 9410cb8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/testing-resources/include/aws/external/gtest/gtest-printers.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,11 +470,15 @@ GTEST_API_ void PrintTo(wchar_t wc, ::std::ostream* os);
470470

471471
GTEST_API_ void PrintTo(char32_t c, ::std::ostream* os);
472472
inline void PrintTo(char16_t c, ::std::ostream* os) {
473-
PrintTo(ImplicitCast_<char32_t>(c), os);
473+
// TODO(b/418738869): Incorrect for values not representing valid codepoints.
474+
// Also see https://github.com/google/googletest/issues/4762.
475+
PrintTo(static_cast<char32_t>(c), os);
474476
}
475477
#ifdef __cpp_lib_char8_t
476478
inline void PrintTo(char8_t c, ::std::ostream* os) {
477-
PrintTo(ImplicitCast_<char32_t>(c), os);
479+
// TODO(b/418738869): Incorrect for values not representing valid codepoints.
480+
// Also see https://github.com/google/googletest/issues/4762.
481+
PrintTo(static_cast<char32_t>(c), os);
478482
}
479483
#endif
480484

0 commit comments

Comments
 (0)