Fix shrink_to_fit for dict
This commit is contained in:
1 parent
567473869b
commit
ec11230b5e
1 file changed
+1
-1
@@ -950,7 +950,7 @@ ARRAY_DEF(m_array_index, m_indexhash_t, M_POD_OPLIST)
|
|||||||
/* Perform a shrink to fit: copy everything to a new dict properly, and move it back */ \
|
/* Perform a shrink to fit: copy everything to a new dict properly, and move it back */ \
|
||||||
dict_t tmp; \
|
dict_t tmp; \
|
||||||
M_F(name, _init_set)(tmp, dict); \
|
M_F(name, _init_set)(tmp, dict); \
|
||||||
M_F(name, _init_move)(dict, tmp); \
|
M_F(name, _move)(dict, tmp); \
|
||||||
return; \
|
return; \
|
||||||
} \
|
} \
|
||||||
/* Get the size which will allow to fit this capacity \
|
/* Get the size which will allow to fit this capacity \
|
||||||
|
|||||||
Reference in new issue
Block a user