[map] Fix resize
This commit is contained in:
parent
efbab6ba3f
commit
a244434622
|
@ -110,6 +110,7 @@ struct hb_map_t
|
|||
items = new_items;
|
||||
|
||||
/* Insert back old items. */
|
||||
if (old_items)
|
||||
for (unsigned int i = 0; i < old_size; i++)
|
||||
if (old_items[i].key != INVALID && old_items[i].value != INVALID)
|
||||
set (old_items[i].key, old_items[i].value);
|
||||
|
|
Loading…
Reference in New Issue