Fix char/uchar comparison warning in toPercentEncoding

This amends commit 5291dc7dcf

Change-Id: Icdd9562f74a4de0323ba8fef558958af41eeb5a1
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Edward Welbourne 2022-03-17 15:33:07 +01:00
parent 71b3d18ea7
commit 131c7009fa
1 changed files with 1 additions and 1 deletions

View File

@ -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