From 7ce6a8fe46e5424fa615f33e1952aad6173fcbe5 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 27 Apr 2014 23:43:01 +0300 Subject: objlist: We no longer need to assert on mem alloc results. They either succeed or raise exception. --- py/objlist.c | 1 - 1 file changed, 1 deletion(-) (limited to 'py') diff --git a/py/objlist.c b/py/objlist.c index 277fce828d..6de07cf578 100644 --- a/py/objlist.c +++ b/py/objlist.c @@ -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; -- cgit v1.2.3