Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
2bfd2dc7
Commit
2bfd2dc7
authored
Apr 07, 2014
by
Damien George
Browse files
py: Revert revert for allocation policy of set hash table.
parent
46bd12d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/map.c
View file @
2bfd2dc7
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment