提交 4099c66f 编写于 作者: B Behdad Esfahbod

[map] Don't return INVALID from get() just because in_error

上级 25783907
...@@ -147,7 +147,6 @@ struct hb_map_t ...@@ -147,7 +147,6 @@ struct hb_map_t
} }
inline hb_codepoint_t get (hb_codepoint_t key) const inline hb_codepoint_t get (hb_codepoint_t key) const
{ {
if (unlikely (in_error)) return INVALID;
if (unlikely (!items)) return INVALID; if (unlikely (!items)) return INVALID;
unsigned int i = bucket_for (key); unsigned int i = bucket_for (key);
return items[i].key == key ? items[i].value : INVALID; return items[i].key == key ? items[i].value : INVALID;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册