[map] Don't return INVALID from get() just because in_error
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 30 May 2018 00:52:07 +0000 (17:52 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 30 May 2018 00:52:07 +0000 (17:52 -0700)
src/hb-map-private.hh

index 0db060c..a9c8379 100644 (file)
@@ -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;