diff --git a/src/hb-array.hh b/src/hb-array.hh index 0bce8d436..4353772e9 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -330,9 +330,7 @@ struct hb_sorted_array_t : break; case HB_BFIND_NOT_FOUND_STORE_CLOSEST: - if (max < 0 || (max < (int) this->length && array[max].cmp (x) > 0)) - max++; - *i = max; + *i = min; break; } }