8000 objlist: We no longer need to assert on mem alloc results. · lurch/micropython@7ce6a8f · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 7ce6a8f

Browse files
committed
objlist: We no longer need to assert on mem alloc results.
They either succeed or raise exception.
1 parent 48bf6b3 commit 7ce6a8f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

py/objlist.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ mp_obj_t mp_obj_list_append(mp_obj_t self_in, mp_obj_t arg) {
162162
mp_obj_list_t *self = self_in;
163163
if (self->len >= self->alloc) {
164164
self->items = m_renew(mp_obj_t, self->items, self->alloc, self->alloc * 2);
165-
assert(self->items);
166165
self->alloc *= 2;
167166
}
168167
self->items[self->len++] = arg;

0 commit comments

Comments
 (0)
0