From a11ceca807bd7a958c3d45ce02fe23cda0085f7d Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 19 Jan 2014 16:02:09 +0000 Subject: Change int to uint for n_args in function with variable arguments. --- py/objset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'py/objset.c') diff --git a/py/objset.c b/py/objset.c index f44c5ba9d..a9ba2ad88 100644 --- a/py/objset.c +++ b/py/objset.c @@ -172,12 +172,12 @@ static mp_obj_t set_diff_int(int n_args, const mp_obj_t *args, bool update) { return self; } -static mp_obj_t set_diff(int n_args, const mp_obj_t *args) { +static mp_obj_t set_diff(uint n_args, const mp_obj_t *args) { return set_diff_int(n_args, args, false); } static MP_DEFINE_CONST_FUN_OBJ_VAR(set_diff_obj, 1, set_diff); -static mp_obj_t set_diff_update(int n_args, const mp_obj_t *args) { +static mp_obj_t set_diff_update(uint n_args, const mp_obj_t *args) { set_diff_int(n_args, args, true); return mp_const_none; } @@ -356,7 +356,7 @@ static void set_update_int(mp_obj_set_t *self, mp_obj_t other_in) { } } -static mp_obj_t set_update(int n_args, const mp_obj_t *args) { +static mp_obj_t set_update(uint n_args, const mp_obj_t *args) { assert(n_args > 0); assert(MP_OBJ_IS_TYPE(args[0], &set_type)); -- cgit v1.2.3