Skip to content

Commit ca06fac

Browse files
committed
stmhal: Update to use size_t for tuple/list accessors.
1 parent 1d7e311 commit ca06fac

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

stmhal/can.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,8 @@ STATIC mp_obj_t pyb_can_setfilter(mp_uint_t n_args, const mp_obj_t *pos_args, mp
631631
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
632632
mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
633633

634-
mp_uint_t len;
635-
mp_uint_t rtr_len;
634+
size_t len;
635+
size_t rtr_len;
636636
mp_uint_t rtr_masks[4] = {0, 0, 0, 0};
637637
mp_obj_t *rtr_flags;
638638
mp_obj_t *params;

stmhal/modutime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(time_localtime_obj, 0, 1, time_localtime);
100100
/// the number of seconds since Jan 1, 2000.
101101
STATIC mp_obj_t time_mktime(mp_obj_t tuple) {
102102

103-
mp_uint_t len;
103+
size_t len;
104104
mp_obj_t *elem;
105105

106106
mp_obj_get_array(tuple, &len, &elem);

0 commit comments

Comments
 (0)