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)) {
|
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…
Reference in New Issue
Block a user