mirror of
https://github.com/google/googletest.git
synced 2025-03-20 02:43:48 +00:00
Merge pull request #2245 from daquexian:fix_wsign_conversion
PiperOrigin-RevId: 246550729
This commit is contained in:
commit
bf3ef5c9b7
@ -237,7 +237,7 @@ void PrintCharAndCodeTo(Char c, ostream* os) {
|
|||||||
if (format == kHexEscape || (1 <= c && c <= 9)) {
|
if (format == kHexEscape || (1 <= c && c <= 9)) {
|
||||||
// Do nothing.
|
// Do nothing.
|
||||||
} else {
|
} else {
|
||||||
*os << ", 0x" << String::FormatHexInt(static_cast<UnsignedChar>(c));
|
*os << ", 0x" << String::FormatHexInt(static_cast<int>(c));
|
||||||
}
|
}
|
||||||
*os << ")";
|
*os << ")";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user