Automated Code Change
PiperOrigin-RevId: 932837091 Change-Id: Ie65ce7e76ecb97b62483b8ee0ba95e5a96b8039e
This commit is contained in:
committed by
Copybara-Service
parent
7140cd416c
commit
44f22083d7
@@ -114,8 +114,7 @@ void PrintBytesInObjectToImpl(const unsigned char* obj_bytes, size_t count,
|
|||||||
// char32_t.
|
// char32_t.
|
||||||
template <typename CharType>
|
template <typename CharType>
|
||||||
char32_t ToChar32(CharType in) {
|
char32_t ToChar32(CharType in) {
|
||||||
return static_cast<char32_t>(
|
return static_cast<char32_t>(static_cast<std::make_unsigned_t<CharType>>(in));
|
||||||
static_cast<typename std::make_unsigned<CharType>::type>(in));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|||||||
Reference in New Issue
Block a user