diff options
Diffstat (limited to 'py/objboundmeth.c')
-rw-r--r-- | py/objboundmeth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objboundmeth.c b/py/objboundmeth.c index 69ae263afc..6e3c5256a0 100644 --- a/py/objboundmeth.c +++ b/py/objboundmeth.c @@ -79,7 +79,7 @@ STATIC void bound_meth_load_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) { } #endif -const mp_obj_type_t bound_meth_type = { +STATIC const mp_obj_type_t mp_type_bound_meth = { { &mp_type_type }, .name = MP_QSTR_bound_method, #if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_DETAILED @@ -93,7 +93,7 @@ const mp_obj_type_t bound_meth_type = { mp_obj_t mp_obj_new_bound_meth(mp_obj_t meth, mp_obj_t self) { mp_obj_bound_meth_t *o = m_new_obj(mp_obj_bound_meth_t); - o->base.type = &bound_meth_type; + o->base.type = &mp_type_bound_meth; o->meth = meth; o->self = self; return o; |