summaryrefslogtreecommitdiffstatshomepage
path: root/shared/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'shared/runtime')
-rw-r--r--shared/runtime/mpirq.c2
-rw-r--r--shared/runtime/sys_stdio_mphal.c4
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