diff --git a/src/hb-map.hh b/src/hb-map.hh index c3fc6e90c..fbc5fecb2 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -375,7 +375,7 @@ struct hb_hashmap_t unsigned i = (unsigned) (*idx + 1); unsigned count = size (); - while (i <= count && !items[i].is_real ()) + while (i < count && !items[i].is_real ()) i++; if (i >= count)