This commit is contained in:
Behdad Esfahbod 2015-02-21 12:31:59 +03:00
parent f47cf1f12d
commit 8e3d4bae03
1 changed files with 1 additions and 1 deletions

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;
}