mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
YAMLParser: silence warning about tautological comparison on unsigned-char platforms.
No functionality change. llvm-svn: 155280
This commit is contained in:
parent
56cbdd4cd7
commit
c685340181
@ -658,7 +658,7 @@ std::string yaml::escape(StringRef Input) {
|
||||
EscapedInput += "\\r";
|
||||
else if (*i == 0x1B)
|
||||
EscapedInput += "\\e";
|
||||
else if (*i >= 0 && *i < 0x20) { // Control characters not handled above.
|
||||
else if ((unsigned char)*i < 0x20) { // Control characters not handled above.
|
||||
std::string HexStr = utohexstr(*i);
|
||||
EscapedInput += "\\x" + std::string(2 - HexStr.size(), '0') + HexStr;
|
||||
} else if (*i & 0x80) { // UTF-8 multiple code unit subsequence.
|
||||
|
Loading…
Reference in New Issue
Block a user