mirror of
https://github.com/google/googletest.git
synced 2026-07-30 16:26:24 +08:00
Automated Code Change
PiperOrigin-RevId: 932837091 Change-Id: Ie65ce7e76ecb97b62483b8ee0ba95e5a96b8039e
This commit is contained in:
parent
7140cd416c
commit
44f22083d7
@ -114,8 +114,7 @@ void PrintBytesInObjectToImpl(const unsigned char* obj_bytes, size_t count,
|
||||
// char32_t.
|
||||
template <typename CharType>
|
||||
char32_t ToChar32(CharType in) {
|
||||
return static_cast<char32_t>(
|
||||
static_cast<typename std::make_unsigned<CharType>::type>(in));
|
||||
return static_cast<char32_t>(static_cast<std::make_unsigned_t<CharType>>(in));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user