[bit-set] Minor setting length on allocation failure

This commit is contained in:
Behdad Esfahbod 2023-01-04 11:35:44 -07:00
parent d8509061e6
commit 45fc919a10
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ struct hb_bit_set_t
if (unlikely (!successful)) return false; if (unlikely (!successful)) return false;
if (unlikely (!pages.resize (count, clear, exact_size) || !page_map.resize (count, clear, exact_size))) 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; successful = false;
return false; return false;
} }