summaryrefslogtreecommitdiffstatshomepage
path: root/py/objlist.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/objlist.c
parent136b149e417314e5ad46b3ee78b811df57e74f41 (diff)
downloadmicropython-a11ceca807bd7a958c3d45ce02fe23cda0085f7d.tar.gz
micropython-a11ceca807bd7a958c3d45ce02fe23cda0085f7d.zip
Change int to uint for n_args in function with variable arguments.
Diffstat (limited to 'py/objlist.c')
-rw-r--r--py/objlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objlist.c b/py/objlist.c
index e499d94239..0ad7b68799 100644
--- a/py/objlist.c
+++ b/py/objlist.c
@@ -209,7 +209,7 @@ static mp_obj_t list_extend(mp_obj_t self_in, mp_obj_t arg_in) {
return mp_const_none; // return None, as per CPython
}
-static mp_obj_t list_pop(int n_args, const mp_obj_t *args) {
+static mp_obj_t list_pop(uint n_args, const mp_obj_t *args) {
assert(1 <= n_args && n_args <= 2);
assert(MP_OBJ_IS_TYPE(args[0], &list_type));
mp_obj_list_t *self = args[0];
@@ -296,7 +296,7 @@ static mp_obj_t list_count(mp_obj_t self_in, mp_obj_t value) {
return mp_obj_new_int(count);
}
-static mp_obj_t list_index(int n_args, const mp_obj_t *args) {
+static mp_obj_t list_index(uint n_args, const mp_obj_t *args) {
assert(2 <= n_args && n_args <= 4);
assert(MP_OBJ_IS_TYPE(args[0], &list_type));
mp_obj_list_t *self = args[0];