diff options
Diffstat (limited to 'py/objrange.c')
-rw-r--r-- | py/objrange.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objrange.c b/py/objrange.c index b163f779b8..1ef42673f4 100644 --- a/py/objrange.c +++ b/py/objrange.c @@ -32,7 +32,7 @@ static const mp_obj_type_t range_type = { NULL, // binary_op range_getiter, NULL, // iternext - {{NULL, NULL},}, // method list + .methods = {{NULL, NULL},}, }; // range is a class and instances are immutable sequence objects @@ -77,7 +77,7 @@ static const mp_obj_type_t range_it_type = { NULL, // binary_op NULL, // getiter range_it_iternext, - {{NULL, NULL},}, // method list + .methods = {{NULL, NULL},}, }; mp_obj_t mp_obj_new_range_iterator(int cur, int stop, int step) { |