summaryrefslogtreecommitdiff
path: root/py/objlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objlist.c')
-rw-r--r--py/objlist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/py/objlist.c b/py/objlist.c
index 29d0c92c5..9f20acbd4 100644
--- a/py/objlist.c
+++ b/py/objlist.c
@@ -114,8 +114,7 @@ static mp_obj_t list_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs) {
}
mp_obj_list_t *p = rhs;
mp_obj_list_t *s = list_new(o->len + p->len);
- memcpy(s->items, o->items, sizeof(mp_obj_t) * o->len);
- memcpy(s->items + o->len, p->items, sizeof(mp_obj_t) * p->len);
+ m_seq_cat(s->items, o->items, o->len, p->items, p->len, mp_obj_t);
return s;
}
case RT_BINARY_OP_INPLACE_ADD: