diff --git a/src/hb-ot-cmap-table.hh b/src/hb-ot-cmap-table.hh index 0c57d1d7d..6ab1dc597 100644 --- a/src/hb-ot-cmap-table.hh +++ b/src/hb-ot-cmap-table.hh @@ -930,7 +930,7 @@ struct DefaultUVS : SortedArray32Of for (const UnicodeValueRange& _ : *this) { - hb_codepoint_t curEntry = (unsigned) _.startUnicodeValue - 1; + hb_codepoint_t curEntry = (hb_codepoint_t) (_.startUnicodeValue - 1); hb_codepoint_t end = curEntry + _.additionalCount + 2; for (; unicodes->next (&curEntry) && curEntry < end;)