summaryrefslogtreecommitdiffstatshomepage
path: root/py/objstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/objstr.c b/py/objstr.c
index cc9f7f85b4..b95aafe432 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -191,8 +191,8 @@ static const mp_method_t str_type_methods[] = {
};
const mp_obj_type_t str_type = {
- { &mp_const_type },
- "str",
+ .base = { &mp_const_type },
+ .name = "str",
.print = str_print,
.binary_op = str_binary_op,
.getiter = str_getiter,
@@ -234,8 +234,8 @@ mp_obj_t str_it_iternext(mp_obj_t self_in) {
}
static const mp_obj_type_t str_it_type = {
- { &mp_const_type },
- "str_iterator",
+ .base = { &mp_const_type },
+ .name = "str_iterator",
.iternext = str_it_iternext,
};