diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2022-06-24 16:27:46 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-09-19 19:06:01 +1000 |
commit | 9dce82776db104750283b213095a7aedfb95a1d9 (patch) | |
tree | ede3b1e720059111af4d97916bbce57fcded8c1c /shared/runtime | |
parent | b7d6ee9b75650bd0ac36e89077d5d08a3eed9e3f (diff) | |
download | micropython-9dce82776db104750283b213095a7aedfb95a1d9.tar.gz micropython-9dce82776db104750283b213095a7aedfb95a1d9.zip |
all: Remove unnecessary locals_dict cast.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'shared/runtime')
-rw-r--r-- | shared/runtime/mpirq.c | 2 | ||||
-rw-r--r-- | shared/runtime/sys_stdio_mphal.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/shared/runtime/mpirq.c b/shared/runtime/mpirq.c index 763da6e0e4..889fa7a9a8 100644 --- a/shared/runtime/mpirq.c +++ b/shared/runtime/mpirq.c @@ -131,7 +131,7 @@ MP_DEFINE_CONST_OBJ_TYPE( MP_TYPE_FLAG_NONE, MP_TYPE_NULL_MAKE_NEW, call, mp_irq_call, - locals_dict, (mp_obj_dict_t *)&mp_irq_locals_dict + locals_dict, &mp_irq_locals_dict ); #endif // MICROPY_ENABLE_SCHEDULER diff --git a/shared/runtime/sys_stdio_mphal.c b/shared/runtime/sys_stdio_mphal.c index f1290853da..6d43425e29 100644 --- a/shared/runtime/sys_stdio_mphal.c +++ b/shared/runtime/sys_stdio_mphal.c @@ -132,7 +132,7 @@ MP_DEFINE_CONST_OBJ_TYPE( getiter, mp_identity_getiter, iternext, mp_stream_unbuffered_iter, protocol, &stdio_obj_stream_p, - locals_dict, (mp_obj_dict_t *)&stdio_locals_dict + locals_dict, &stdio_locals_dict ); const sys_stdio_obj_t mp_sys_stdin_obj = {{&stdio_obj_type}, .fd = STDIO_FD_IN}; @@ -168,7 +168,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE( getiter, mp_identity_getiter, iternext, mp_stream_unbuffered_iter, protocol, &stdio_buffer_obj_stream_p, - locals_dict, (mp_obj_dict_t *)&stdio_locals_dict + locals_dict, &stdio_locals_dict ); STATIC const sys_stdio_obj_t stdio_buffer_obj = {{&stdio_buffer_obj_type}, .fd = 0}; // fd unused |