Commit 7ce6a8fe authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

objlist: We no longer need to assert on mem alloc results.

They either succeed or raise exception.
parent 48bf6b3b
......@@ -162,7 +162,6 @@ mp_obj_t mp_obj_list_append(mp_obj_t self_in, mp_obj_t arg) {
mp_obj_list_t *self = self_in;
if (self->len >= self->alloc) {
self->items = m_renew(mp_obj_t, self->items, self->alloc, self->alloc * 2);
assert(self->items);
self->alloc *= 2;
}
self->items[self->len++] = arg;
......
Markdown is supported
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