This commit is contained in:
Behdad Esfahbod 2018-11-24 00:38:36 -05:00
parent fd94e729cb
commit 5cd9546ba7
1 changed files with 1 additions and 4 deletions

View File

@ -1194,10 +1194,7 @@ struct ClassDefFormat1
private:
inline unsigned int get_class (hb_codepoint_t glyph_id) const
{
unsigned int i = (unsigned int) (glyph_id - startGlyph);
if (unlikely (i < classValue.len))
return classValue[i];
return 0;
return classValue[(unsigned int) (glyph_id - startGlyph)];
}
inline bool sanitize (hb_sanitize_context_t *c) const