Fix -Wsign-conversion error by adding static_cast
This commit is contained in:
parent
9997a830ee
commit
ca642a925e
@ -237,7 +237,7 @@ void PrintCharAndCodeTo(Char c, ostream* os) {
|
||||
if (format == kHexEscape || (1 <= c && c <= 9)) {
|
||||
// Do nothing.
|
||||
} else {
|
||||
*os << ", 0x" << String::FormatHexInt(static_cast<UnsignedChar>(c));
|
||||
*os << ", 0x" << String::FormatHexInt(static_cast<int>(c));
|
||||
}
|
||||
*os << ")";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user