Skip to content

Commit a732961

Browse files
committed
py: Fix types, uint -> mp_uint_t.
1 parent 0b610de commit a732961

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

py/objfun.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ STATIC mp_uint_t convert_obj_for_inline_asm(mp_obj_t obj) {
472472
return 1;
473473
} else if (MP_OBJ_IS_STR(obj)) {
474474
// pointer to the string (it's probably constant though!)
475-
uint l;
475+
mp_uint_t l;
476476
return (mp_uint_t)mp_obj_str_get_data(obj, &l);
477477
} else {
478478
mp_obj_type_t *type = mp_obj_get_type(obj);
@@ -484,13 +484,13 @@ STATIC mp_uint_t convert_obj_for_inline_asm(mp_obj_t obj) {
484484
#endif
485485
} else if (type == &mp_type_tuple) {
486486
// pointer to start of tuple (could pass length, but then could use len(x) for that)
487-
uint len;
487+
mp_uint_t len;
488488
mp_obj_t *items;
489489
mp_obj_tuple_get(obj, &len, &items);
490490
return (mp_uint_t)items;
491491
} else if (type == &mp_type_list) {
492492
// pointer to start of list (could pass length, but then could use len(x) for that)
493-
uint len;
493+
mp_uint_t len;
494494
mp_obj_t *items;
495495
mp_obj_list_get(obj, &len, &items);
496496
return (mp_uint_t)items;

0 commit comments

Comments
 (0)