提交 506ffeb8 编写于 作者: B Behdad Esfahbod

Further mark skippy fixes from Jonathan Kew

We should be in good shape now.
上级 a4a48fe6
......@@ -86,6 +86,7 @@ struct hb_apply_context_t
inline bool next (unsigned int *property_out,
unsigned int lookup_props)
{
assert (num_items > 0);
do
{
if (has_no_chance ())
......@@ -119,11 +120,12 @@ struct hb_apply_context_t
}
inline bool has_no_chance (void) const
{
return unlikely (num_items && num_items >= idx);
return unlikely (idx < num_items);
}
inline bool prev (unsigned int *property_out,
unsigned int lookup_props)
{
assert (num_items > 0);
do
{
if (has_no_chance ())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册