[bit-set] Minor setting length on allocation failure
This commit is contained in:
parent
d8509061e6
commit
45fc919a10
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue