summaryrefslogtreecommitdiffstatshomepage
path: root/py/objlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objlist.c')
-rw-r--r--py/objlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/objlist.c b/py/objlist.c
index 0446412e83..5162fa09ff 100644
--- a/py/objlist.c
+++ b/py/objlist.c
@@ -293,8 +293,8 @@ static const mp_method_t list_type_methods[] = {
};
const mp_obj_type_t list_type = {
- .base = { &mp_const_type },
- .name = "list",
+ { &mp_const_type },
+ "list",
.print = list_print,
.make_new = list_make_new,
.binary_op = list_binary_op,
@@ -360,8 +360,8 @@ mp_obj_t list_it_iternext(mp_obj_t self_in) {
}
static const mp_obj_type_t list_it_type = {
- .base = { &mp_const_type },
- .name = "list_iterator",
+ { &mp_const_type },
+ "list_iterator",
.iternext = list_it_iternext,
};