[vector] Whitespace

This commit is contained in:
Behdad Esfahbod 2018-06-01 17:34:24 -07:00
parent fb07d1a3ce
commit 1ab3c3ed1b
1 changed files with 6 additions and 4 deletions

View File

@ -683,15 +683,17 @@ struct hb_vector_t
Type *new_array = nullptr;
if (arrayZ == static_array) {
if (arrayZ == static_array)
{
new_array = (Type *) calloc (new_allocated, sizeof (Type));
if (new_array)
memcpy (new_array, arrayZ, len * sizeof (Type));
} else {
}
else
{
bool overflows = (new_allocated < allocated) || _hb_unsigned_int_mul_overflows (new_allocated, sizeof (Type));
if (likely (!overflows)) {
if (likely (!overflows))
new_array = (Type *) realloc (arrayZ, new_allocated * sizeof (Type));
}
}
if (unlikely (!new_array))