summaryrefslogtreecommitdiff
path: root/py/objstr.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-06-24 16:27:46 +1000
committerDamien George <damien@micropython.org>2022-09-19 19:06:01 +1000
commit9dce82776db104750283b213095a7aedfb95a1d9 (patch)
treeede3b1e720059111af4d97916bbce57fcded8c1c /py/objstr.c
parentb7d6ee9b75650bd0ac36e89077d5d08a3eed9e3f (diff)
all: Remove unnecessary locals_dict cast.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objstr.c b/py/objstr.c
index 77ca269d4..d42505555 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -2153,7 +2153,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
subscr, bytes_subscr,
getiter, mp_obj_new_str_iterator,
buffer, mp_obj_str_get_buffer,
- locals_dict, (mp_obj_dict_t *)&mp_obj_str_locals_dict
+ locals_dict, &mp_obj_str_locals_dict
);
#endif // !MICROPY_PY_BUILTINS_STR_UNICODE
@@ -2168,7 +2168,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
subscr, bytes_subscr,
getiter, mp_obj_new_bytes_iterator,
buffer, mp_obj_str_get_buffer,
- locals_dict, (mp_obj_dict_t *)&mp_obj_bytes_locals_dict
+ locals_dict, &mp_obj_bytes_locals_dict
);
// The zero-length bytes object, with data that includes a null-terminating byte