This commit is contained in:
Behdad Esfahbod committed 2015-02-25 15:43:33 -08:00
1 parent f47cf1f12d
commit 8e3d4bae03
1 file changed
+1 -1
+1 -1
View File
@@ -1041,7 +1041,7 @@ struct ClassDefFormat2
inline unsigned int get_class (hb_codepoint_t glyph_id) const
{
int i = rangeRecord.bsearch (glyph_id);
if (i != -1)
if (unlikely (i != -1))
return rangeRecord[i].value;
return 0;
}