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.
This commit is contained in:
Paul Sokolovsky 2014-04-07 03:07:21 +03:00
parent 4d2238d2ce
commit 46bd12d57e

View File

@ -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));