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 d83dbc3db2.
Change-Id: I7910b7e2dfaaa01d8069ce52e97c0166e6d3fa30
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
bb10
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…
Reference in New Issue