diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2022-03-17 15:33:07 +0100 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-03-25 17:04:37 +0100 |
| commit | 131c7009fa4b3969bb74b17f8e2cec8ba6e710a8 (patch) | |
| tree | 1624e7d0dafc60e5d9cde87b73d644ab4d39ea89 /src | |
| parent | 71b3d18ea7962a01413966f793e8187c9e91685e (diff) | |
Fix char/uchar comparison warning in toPercentEncoding
This amends commit 5291dc7dcfa489354d3f880468902debf755d9cd
Change-Id: Icdd9562f74a4de0323ba8fef558958af41eeb5a1
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
| -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 a261406f389..88aef5989fd 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 |
