Merge pull request #2245 from daquexian:fix_wsign_conversion

PiperOrigin-RevId: 246550729
This commit is contained in:
gennadiycivil 2019-05-03 15:11:29 -04:00
commit bf3ef5c9b7

View File

@ -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 << ")";
} }