From 79ad2b3799188ef273f24631403e9fc42b6963ed Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 4 Sep 2014 22:32:38 -0700 Subject: [PATCH] Fix warning about sign change (ICC) ICC doesn't like that you assign -1 to an unsigned variable. I could have used ~0 to mean the same thing, but actually initialization isn't necessary at all. error #68: integer conversion resulted in a change of sign Change-Id: I3e9116d7309f7a7ccd99b1adfa9bffaed1ff1c73 Reviewed-by: Konstantin Ritt --- src/gui/text/qfontengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/text/qfontengine.cpp b/src/gui/text/qfontengine.cpp index 5f801c3bf4..4faa018a40 100644 --- a/src/gui/text/qfontengine.cpp +++ b/src/gui/text/qfontengine.cpp @@ -374,7 +374,7 @@ bool QFontEngine::supportsScript(QChar::Script script) const hb_tag_t script_tag_1, script_tag_2; hb_ot_tags_from_script(hb_qt_script_to_script(script), &script_tag_1, &script_tag_2); - unsigned int script_index = -1; + unsigned int script_index; ret = hb_ot_layout_table_find_script(face, HB_OT_TAG_GSUB, script_tag_1, &script_index); if (!ret) { ret = hb_ot_layout_table_find_script(face, HB_OT_TAG_GSUB, script_tag_2, &script_index);