Minor
This commit is contained in:
parent
68e04afbb1
commit
ef79bdf73b
|
@ -984,8 +984,9 @@ struct ClassDefFormat1
|
||||||
private:
|
private:
|
||||||
inline unsigned int get_class (hb_codepoint_t glyph_id) const
|
inline unsigned int get_class (hb_codepoint_t glyph_id) const
|
||||||
{
|
{
|
||||||
if (unlikely ((unsigned int) (glyph_id - startGlyph) < classValue.len))
|
unsigned int i = (unsigned int) (glyph_id - startGlyph);
|
||||||
return classValue[glyph_id - startGlyph];
|
if (unlikely (i < classValue.len))
|
||||||
|
return classValue[i];
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue