diff options
Diffstat (limited to 'py/objfun.c')
-rw-r--r-- | py/objfun.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/py/objfun.c b/py/objfun.c index 0db6459a39..4945462817 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -79,9 +79,7 @@ const mp_obj_type_t fun_native_type = { NULL, // binary_op NULL, // getiter NULL, // iternext - .methods = { - {NULL, NULL}, // end-of-list sentinel - }, + .methods = NULL, }; mp_obj_t rt_make_function_0(mp_fun_0_t fun) { @@ -181,9 +179,7 @@ const mp_obj_type_t fun_bc_type = { NULL, // binary_op NULL, // getiter NULL, // iternext - .methods = { - {NULL, NULL}, // end-of-list sentinel - }, + .methods = NULL, }; mp_obj_t mp_obj_new_fun_bc(int n_args, uint n_state, const byte *code) { @@ -295,9 +291,7 @@ static const mp_obj_type_t fun_asm_type = { NULL, // binary_op NULL, // getiter NULL, // iternext - .methods = { - {NULL, NULL}, // end-of-list sentinel - }, + .methods = NULL, }; mp_obj_t mp_obj_new_fun_asm(uint n_args, void *fun) { |