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:
Jiang Jiang 2012-05-30 11:47:18 +02:00 committed by Qt by Nokia
parent adbf443c47
commit 604fe65cb3

View File

@ -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) {