Minor
This commit is contained in:
parent
fd94e729cb
commit
5cd9546ba7
|
@ -1194,10 +1194,7 @@ 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
|
||||||
{
|
{
|
||||||
unsigned int i = (unsigned int) (glyph_id - startGlyph);
|
return classValue[(unsigned int) (glyph_id - startGlyph)];
|
||||||
if (unlikely (i < classValue.len))
|
|
||||||
return classValue[i];
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool sanitize (hb_sanitize_context_t *c) const
|
inline bool sanitize (hb_sanitize_context_t *c) const
|
||||||
|
|
Loading…
Reference in New Issue