Fix char/uchar comparison warning in toPercentEncoding
This amends commit 5291dc7dcfa489354d3f880468902debf755d9cd Change-Id: Icdd9562f74a4de0323ba8fef558958af41eeb5a1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
71b3d18ea7
commit
131c7009fa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user