summaryrefslogtreecommitdiff
path: root/py/objset.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-19 16:02:09 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-19 16:02:09 +0000
commita11ceca807bd7a958c3d45ce02fe23cda0085f7d (patch)
treec2da00732cfd5343de5e2ead9adc9dbd7826952d /py/objset.c
parent136b149e417314e5ad46b3ee78b811df57e74f41 (diff)
Change int to uint for n_args in function with variable arguments.
Diffstat (limited to 'py/objset.c')
-rw-r--r--py/objset.c6
1 files changed, 3 insertions, 3 deletions
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));