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
parent
dfae6416dc
commit
db8729b018
|
|
@ -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++;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue