mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix a warning about redundant comparison of unsigned char to 0
Swift SVN r22340
This commit is contained in:
@@ -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).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user