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

pull/1040/head
Behdad Esfahbod 7 years ago
parent 2578390773
commit 4099c66f70
  1. 1
      src/hb-map-private.hh

@ -147,7 +147,6 @@ struct hb_map_t
}
inline hb_codepoint_t get (hb_codepoint_t key) const
{
if (unlikely (in_error)) return INVALID;
if (unlikely (!items)) return INVALID;
unsigned int i = bucket_for (key);
return items[i].key == key ? items[i].value : INVALID;

Loading…
Cancel
Save