Change two types in qurlidna

To avoid comparison between signed and unsigned integers,
and the compiler warnings that come with it.

Change-Id: I1028a980dfde68acc338f0e480fdeec42ed81ffb
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
David Skoland 2021-09-07 21:32:26 +02:00
parent dfae6416dc
commit db8729b018
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ static const uint damp = 700;
static const uint initial_bias = 72;
static const uint initial_n = 128;
static constexpr unsigned MaxDomainLabelLength = 63;
static constexpr qsizetype MaxDomainLabelLength = 63;
static inline uint encodeDigit(uint digit)
{
@ -139,7 +139,7 @@ Q_AUTOTEST_EXPORT void qt_punycodeEncoder(QStringView in, QString *output)
*output += QLatin1Char{'-'};
// compute the input length in Unicode code points.
qsizetype inputLength = 0;
uint inputLength = 0;
for (QStringIterator iter(in); iter.hasNext();) {
inputLength++;