py: Revert revert for allocation policy of set hash table.

This commit is contained in:
Damien George 2014-04-07 01:16:17 +01:00
parent 46bd12d57e
commit 2bfd2dc770
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ mp_map_elem_t* mp_map_lookup(mp_map_t *map, mp_obj_t index, mp_map_lookup_kind_t
/* set */
void mp_set_init(mp_set_t *set, int n) {
set->alloc = get_doubling_prime_greater_or_equal_to(n + 1);
set->alloc = n;
set->used = 0;
set->table = m_new0(mp_obj_t, set->alloc);
}