@@ -48,7 +48,7 @@ extern struct _mp_dummy_t mp_sys_stdout_obj; // type is irrelevant, just need po
4848// args[0] is function from class body
4949// args[1] is class name
5050// args[2:] are base objects
51- STATIC mp_obj_t mp_builtin___build_class__ (mp_uint_t n_args , const mp_obj_t * args ) {
51+ STATIC mp_obj_t mp_builtin___build_class__ (size_t n_args , const mp_obj_t * args ) {
5252 assert (2 <= n_args );
5353
5454 // set the new classes __locals__ object
@@ -193,7 +193,7 @@ STATIC mp_obj_t mp_builtin_chr(mp_obj_t o_in) {
193193}
194194MP_DEFINE_CONST_FUN_OBJ_1 (mp_builtin_chr_obj , mp_builtin_chr );
195195
196- STATIC mp_obj_t mp_builtin_dir (mp_uint_t n_args , const mp_obj_t * args ) {
196+ STATIC mp_obj_t mp_builtin_dir (size_t n_args , const mp_obj_t * args ) {
197197 // TODO make this function more general and less of a hack
198198
199199 mp_obj_dict_t * dict = NULL ;
@@ -264,7 +264,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_iter_obj, mp_builtin_iter);
264264
265265#if MICROPY_PY_BUILTINS_MIN_MAX
266266
267- STATIC mp_obj_t mp_builtin_min_max (mp_uint_t n_args , const mp_obj_t * args , mp_map_t * kwargs , mp_uint_t op ) {
267+ STATIC mp_obj_t mp_builtin_min_max (size_t n_args , const mp_obj_t * args , mp_map_t * kwargs , mp_uint_t op ) {
268268 mp_map_elem_t * key_elem = mp_map_lookup (kwargs , MP_OBJ_NEW_QSTR (MP_QSTR_key ), MP_MAP_LOOKUP );
269269 mp_map_elem_t * default_elem ;
270270 mp_obj_t key_fn = key_elem == NULL ? MP_OBJ_NULL : key_elem -> value ;
@@ -305,12 +305,12 @@ STATIC mp_obj_t mp_builtin_min_max(mp_uint_t n_args, const mp_obj_t *args, mp_ma
305305 }
306306}
307307
308- STATIC mp_obj_t mp_builtin_max (mp_uint_t n_args , const mp_obj_t * args , mp_map_t * kwargs ) {
308+ STATIC mp_obj_t mp_builtin_max (size_t n_args , const mp_obj_t * args , mp_map_t * kwargs ) {
309309 return mp_builtin_min_max (n_args , args , kwargs , MP_BINARY_OP_MORE );
310310}
311311MP_DEFINE_CONST_FUN_OBJ_KW (mp_builtin_max_obj , 1 , mp_builtin_max );
312312
313- STATIC mp_obj_t mp_builtin_min (mp_uint_t n_args , const mp_obj_t * args , mp_map_t * kwargs ) {
313+ STATIC mp_obj_t mp_builtin_min (size_t n_args , const mp_obj_t * args , mp_map_t * kwargs ) {
314314 return mp_builtin_min_max (n_args , args , kwargs , MP_BINARY_OP_LESS );
315315}
316316MP_DEFINE_CONST_FUN_OBJ_KW (mp_builtin_min_obj , 1 , mp_builtin_min );
@@ -375,7 +375,7 @@ STATIC mp_obj_t mp_builtin_ord(mp_obj_t o_in) {
375375}
376376MP_DEFINE_CONST_FUN_OBJ_1 (mp_builtin_ord_obj , mp_builtin_ord );
377377
378- STATIC mp_obj_t mp_builtin_pow (mp_uint_t n_args , const mp_obj_t * args ) {
378+ STATIC mp_obj_t mp_builtin_pow (size_t n_args , const mp_obj_t * args ) {
379379 assert (2 <= n_args && n_args <= 3 );
380380 switch (n_args ) {
381381 case 2 : return mp_binary_op (MP_BINARY_OP_POWER , args [0 ], args [1 ]);
@@ -384,7 +384,7 @@ STATIC mp_obj_t mp_builtin_pow(mp_uint_t n_args, const mp_obj_t *args) {
384384}
385385MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (mp_builtin_pow_obj , 2 , 3 , mp_builtin_pow );
386386
387- STATIC mp_obj_t mp_builtin_print (mp_uint_t n_args , const mp_obj_t * args , mp_map_t * kwargs ) {
387+ STATIC mp_obj_t mp_builtin_print (size_t n_args , const mp_obj_t * args , mp_map_t * kwargs ) {
388388 mp_map_elem_t * sep_elem = mp_map_lookup (kwargs , MP_OBJ_NEW_QSTR (MP_QSTR_sep ), MP_MAP_LOOKUP );
389389 mp_map_elem_t * end_elem = mp_map_lookup (kwargs , MP_OBJ_NEW_QSTR (MP_QSTR_end ), MP_MAP_LOOKUP );
390390 const char * sep_data = " " ;
@@ -456,7 +456,7 @@ STATIC mp_obj_t mp_builtin_repr(mp_obj_t o_in) {
456456}
457457MP_DEFINE_CONST_FUN_OBJ_1 (mp_builtin_repr_obj , mp_builtin_repr );
458458
459- STATIC mp_obj_t mp_builtin_round (mp_uint_t n_args , const mp_obj_t * args ) {
459+ STATIC mp_obj_t mp_builtin_round (size_t n_args , const mp_obj_t * args ) {
460460 mp_obj_t o_in = args [0 ];
461461 if (MP_OBJ_IS_INT (o_in )) {
462462 return o_in ;
@@ -490,7 +490,7 @@ STATIC mp_obj_t mp_builtin_round(mp_uint_t n_args, const mp_obj_t *args) {
490490}
491491MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (mp_builtin_round_obj , 1 , 2 , mp_builtin_round );
492492
493- STATIC mp_obj_t mp_builtin_sum (mp_uint_t n_args , const mp_obj_t * args ) {
493+ STATIC mp_obj_t mp_builtin_sum (size_t n_args , const mp_obj_t * args ) {
494494 assert (1 <= n_args && n_args <= 2 );
495495 mp_obj_t value ;
496496 switch (n_args ) {
@@ -506,7 +506,7 @@ STATIC mp_obj_t mp_builtin_sum(mp_uint_t n_args, const mp_obj_t *args) {
506506}
507507MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (mp_builtin_sum_obj , 1 , 2 , mp_builtin_sum );
508508
509- STATIC mp_obj_t mp_builtin_sorted (mp_uint_t n_args , const mp_obj_t * args , mp_map_t * kwargs ) {
509+ STATIC mp_obj_t mp_builtin_sorted (size_t n_args , const mp_obj_t * args , mp_map_t * kwargs ) {
510510 assert (n_args >= 1 );
511511 if (n_args > 1 ) {
512512 nlr_raise (mp_obj_new_exception_msg (& mp_type_TypeError ,
@@ -535,7 +535,7 @@ STATIC inline mp_obj_t mp_load_attr_default(mp_obj_t base, qstr attr, mp_obj_t d
535535 }
536536}
537537
538- STATIC mp_obj_t mp_builtin_getattr (mp_uint_t n_args , const mp_obj_t * args ) {
538+ STATIC mp_obj_t mp_builtin_getattr (size_t n_args , const mp_obj_t * args ) {
539539 mp_obj_t defval = MP_OBJ_NULL ;
540540 if (n_args > 2 ) {
541541 defval = args [2 ];
0 commit comments