Fix warning on macOS builds, unbreak -developer-build
The mix of signed (qsizetype) and unsigned long when comparing breaks local -Werror,-Wsign-compare builds. Amends d83dbc3db2f305e745cd75a9fd9c97128eaac42f. Change-Id: I7910b7e2dfaaa01d8069ce52e97c0166e6d3fa30 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
1ee875dcac
commit
7955dceec1
@ -138,7 +138,7 @@ QCollatorSortKey QCollator::sortKey(const QString &string) const
|
||||
status = UCGetCollationKey(d->collator, text, string.count(),
|
||||
ret.size(), &actualSize, ret.data());
|
||||
Q_ASSERT(status != kUCOutputBufferTooSmall);
|
||||
Q_ASSERT(ret.size() == actualSize + 1);
|
||||
Q_ASSERT(ret.size() == qsizetype(actualSize + 1));
|
||||
}
|
||||
ret[actualSize] = 0;
|
||||
return QCollatorSortKey(new QCollatorSortKeyPrivate(std::move(ret)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user