From db8729b0180ef489bcd85f389f80266224463bd7 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Tue, 7 Sep 2021 21:32:26 +0200 Subject: [PATCH] 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 Reviewed-by: Thiago Macieira --- src/corelib/io/qurlidna.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/io/qurlidna.cpp b/src/corelib/io/qurlidna.cpp index 45b04d8888..38032b8756 100644 --- a/src/corelib/io/qurlidna.cpp +++ b/src/corelib/io/qurlidna.cpp @@ -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++;