Eliminate a warning in unsigned integer comparison
The length we cast is from int QTextEngine::length() so it's safe to do so. Change-Id: I60fdbcb5a96c99b767093102a30e97951ef5b6ea Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
This commit is contained in:
parent
adbf443c47
commit
604fe65cb3
@ -1011,7 +1011,7 @@ void QTextEngine::shapeTextWithHarfbuzz(int item) const
|
||||
|
||||
QVarLengthArray<HB_UChar16, 256> casedString;
|
||||
if (hasCaseChange(si)) {
|
||||
if (casedString.size() < entire_shaper_item.item.length)
|
||||
if (casedString.size() < static_cast<int>(entire_shaper_item.item.length))
|
||||
casedString.resize(entire_shaper_item.item.length);
|
||||
HB_UChar16 *uc = casedString.data();
|
||||
for (uint i = 0; i < entire_shaper_item.item.length; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user