Skip to content

Commit

Permalink
py: Revert revert for allocation policy of set hash table.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Apr 7, 2014
1 parent 46bd12d commit 2bfd2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2bfd2dc

Please sign in to comment.