Commit 46bd12d5 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

objset: Fix incorrect workaround against mp_set_init() munging alloc size.

No longer needed after recent change which guarantees that mp_set_init()
will allocate exact number of slots requested.
parent 4d2238d2
......@@ -128,7 +128,7 @@ STATIC mp_obj_t set_copy(mp_obj_t self_in) {
mp_obj_set_t *other = m_new_obj(mp_obj_set_t);
other->base.type = &mp_type_set;
mp_set_init(&other->set, self->set.alloc - 1);
mp_set_init(&other->set, self->set.alloc);
other->set.used = self->set.used;
memcpy(other->set.table, self->set.table, self->set.alloc * sizeof(mp_obj_t));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment