summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-27 23:43:01 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-28 00:33:21 +0300
commit7ce6a8fe46e5424fa615f33e1952aad6173fcbe5 (patch)
tree91cb76d4df70674104f860e5f89aba92750106d4 /py
parent48bf6b3bd0a839f4b31b9902c234c61fff0da9a2 (diff)
downloadmicropython-7ce6a8fe46e5424fa615f33e1952aad6173fcbe5.tar.gz
micropython-7ce6a8fe46e5424fa615f33e1952aad6173fcbe5.zip
objlist: We no longer need to assert on mem alloc results.
They either succeed or raise exception.
Diffstat (limited to 'py')
-rw-r--r--py/objlist.c1
1 files changed, 0 insertions, 1 deletions
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;