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 <ritt.ks@gmail.com>bb10
parent
0048127c94
commit
79ad2b3799
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue