diff options
-rw-r--r-- | src/corelib/text/qbytearray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp index a261406f38..88aef5989f 100644 --- a/src/corelib/text/qbytearray.cpp +++ b/src/corelib/text/qbytearray.cpp @@ -4604,7 +4604,7 @@ QByteArray QByteArray::toPercentEncoding(const QByteArray &exclude, const QByteA qsizetype length = 0; for (unsigned char c : *this) { - if (c != percent + if (char(c) != percent && ((c >= 0x61 && c <= 0x7A) // ALPHA || (c >= 0x41 && c <= 0x5A) // ALPHA || (c >= 0x30 && c <= 0x39) // DIGIT |