From 604fe65cb305a77df988fc438614df1efb7c7adb Mon Sep 17 00:00:00 2001 From: Jiang Jiang Date: Wed, 30 May 2012 11:47:18 +0200 Subject: [PATCH] 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 --- src/gui/text/qtextengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp index d1f168805a..18cc34ceef 100644 --- a/src/gui/text/qtextengine.cpp +++ b/src/gui/text/qtextengine.cpp @@ -1011,7 +1011,7 @@ void QTextEngine::shapeTextWithHarfbuzz(int item) const QVarLengthArray casedString; if (hasCaseChange(si)) { - if (casedString.size() < entire_shaper_item.item.length) + if (casedString.size() < static_cast(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) {