Fix a warning about redundant comparison of unsigned char to 0

Swift SVN r22340
This commit is contained in:
Dmitri Hrybenko
2014-09-28 18:56:59 +00:00
parent d396134832
commit 97b166fe8a

View File

@@ -197,7 +197,7 @@ void Output::scalarString(StringRef &S, bool MustQuote) {
break;
default:
// Otherwise, check to see if the current byte is a control character.
if (c >= '\x00' && c <= '\x1F') {
if (c <= '\x1F') {
// Since we have a control character, we need to escape it using
// JSON's only valid escape sequence: \uxxxx (where x is a hex digit).