提交 84efe043 编写于 作者: B Behdad Esfahbod

[aat] Fix division sign fallout

Happened after 11d2f49a
since now nClasses is unsigned int...
上级 2087f5a2
...@@ -504,7 +504,7 @@ struct StateTable ...@@ -504,7 +504,7 @@ struct StateTable
}; };
inline int new_state (unsigned int newState) const inline int new_state (unsigned int newState) const
{ return Types::extended ? newState : ((int) newState - (int) stateArrayTable) / nClasses; } { return Types::extended ? newState : ((int) newState - (int) stateArrayTable) / (int) nClasses; }
inline unsigned int get_class (hb_codepoint_t glyph_id, unsigned int num_glyphs) const inline unsigned int get_class (hb_codepoint_t glyph_id, unsigned int num_glyphs) const
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册