From 4b72b3a133ea87a1ef8b964508dc25c551ccf093 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 3 Jan 2016 14:21:40 +0000 Subject: py: Change type signature of builtin funs that take variable or kw args. With this patch the n_args parameter is changed type from mp_uint_t to size_t. --- py/obj.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'py/obj.h') diff --git a/py/obj.h b/py/obj.h index 88767bf1a..52b8b4f8d 100644 --- a/py/obj.h +++ b/py/obj.h @@ -395,8 +395,8 @@ typedef mp_obj_t (*mp_fun_0_t)(void); typedef mp_obj_t (*mp_fun_1_t)(mp_obj_t); typedef mp_obj_t (*mp_fun_2_t)(mp_obj_t, mp_obj_t); typedef mp_obj_t (*mp_fun_3_t)(mp_obj_t, mp_obj_t, mp_obj_t); -typedef mp_obj_t (*mp_fun_var_t)(mp_uint_t n, const mp_obj_t *); -typedef mp_obj_t (*mp_fun_kw_t)(mp_uint_t n, const mp_obj_t *, mp_map_t *); +typedef mp_obj_t (*mp_fun_var_t)(size_t n, const mp_obj_t *); +typedef mp_obj_t (*mp_fun_kw_t)(size_t n, const mp_obj_t *, mp_map_t *); typedef enum { PRINT_STR = 0, @@ -725,7 +725,7 @@ mp_obj_t mp_obj_list_remove(mp_obj_t self_in, mp_obj_t value); void mp_obj_list_get(mp_obj_t self_in, mp_uint_t *len, mp_obj_t **items); void mp_obj_list_set_len(mp_obj_t self_in, mp_uint_t len); void mp_obj_list_store(mp_obj_t self_in, mp_obj_t index, mp_obj_t value); -mp_obj_t mp_obj_list_sort(mp_uint_t n_args, const mp_obj_t *args, mp_map_t *kwargs); +mp_obj_t mp_obj_list_sort(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs); // dict typedef struct _mp_obj_dict_t { -- cgit v1.2.3