提交 caf04126 编写于 作者: B Behdad Esfahbod

Minor

上级 0f8fea71
...@@ -558,7 +558,7 @@ struct ClassDefFormat1 ...@@ -558,7 +558,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
{ {
if ((unsigned int) (glyph_id - startGlyph) < classValue.len) if (unlikely ((unsigned int) (glyph_id - startGlyph) < classValue.len))
return classValue[glyph_id - startGlyph]; return classValue[glyph_id - startGlyph];
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册