Skip to content

Commit 7f7105d

Browse files
committed
Fix tuple test
1 parent dc8dd6d commit 7f7105d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/objtuple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ mp_obj_t mp_obj_tuple_binary_op(mp_binary_op_t op, mp_obj_t lhs, mp_obj_t rhs) {
181181
mp_obj_t mp_obj_tuple_subscr(mp_obj_t self_in, mp_obj_t index, mp_obj_t value) {
182182
if (value == MP_OBJ_SENTINEL) {
183183
// load
184-
mp_obj_tuple_t *self = MP_OBJ_TO_PTR(self_in);
184+
mp_obj_tuple_t *self = mp_instance_cast_to_native_base(self_in, MP_OBJ_FROM_PTR(&mp_type_tuple));
185185
#if MICROPY_PY_BUILTINS_SLICE
186186
if (MP_OBJ_IS_TYPE(index, &mp_type_slice)) {
187187
mp_bound_slice_t slice;

0 commit comments

Comments
 (0)