[bit-set] Minor setting length on allocation failure

pull/4009/head
Behdad Esfahbod 2 years ago
parent d8509061e6
commit 45fc919a10
  1. 2
      src/hb-bit-set.hh

@ -90,7 +90,7 @@ struct hb_bit_set_t
if (unlikely (!successful)) return false;
if (unlikely (!pages.resize (count, clear, exact_size) || !page_map.resize (count, clear, exact_size)))
{
pages.resize (page_map.length);
pages.resize (page_map.length, clear, exact_size);
successful = false;
return false;
}

Loading…
Cancel
Save