This commit is contained in:
Behdad Esfahbod 2012-06-09 00:26:32 -04:00
parent 0f8fea71a6
commit caf0412690
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ struct ClassDefFormat1
private:
inline unsigned int get_class (hb_codepoint_t glyph_id) const
{
if ((unsigned int) (glyph_id - startGlyph) < classValue.len)
if (unlikely ((unsigned int) (glyph_id - startGlyph) < classValue.len))
return classValue[glyph_id - startGlyph];
return 0;
}