diff options
author | David Skoland <david.skoland@qt.io> | 2021-09-07 21:32:26 +0200 |
---|---|---|
committer | David Skoland <david.skoland@qt.io> | 2021-09-09 18:15:23 +0200 |
commit | db8729b0180ef489bcd85f389f80266224463bd7 (patch) | |
tree | b2bfa9dffbf63f69ecb7d24d48589ae5dc694903 | |
parent | dfae6416dcfdb30f1490d674e986eb80662d3ead (diff) |
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>
-rw-r--r-- | src/corelib/io/qurlidna.cpp | 4 |
1 files 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++; |