diff options
author | Wolf Vollprecht <w.vollprecht@gmail.com> | 2019-03-13 12:55:15 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-03-13 23:18:59 +1100 |
commit | 921b999225d0aaa220fb4c302e1fb514c6ab39f4 (patch) | |
tree | 4ba82c3a5e1eab4c46f2431351cbe6c67ac0fd7c | |
parent | 912e957512dc6a4582b1bd02aeb8f1c92be6f5b2 (diff) |
extmod/moduselect: Adjust select_select and poll_register to use size_t.
-rw-r--r-- | extmod/moduselect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/moduselect.c b/extmod/moduselect.c index 13bf5611e..a65fa6df2 100644 --- a/extmod/moduselect.c +++ b/extmod/moduselect.c @@ -111,7 +111,7 @@ STATIC mp_uint_t poll_map_poll(mp_map_t *poll_map, size_t *rwx_num) { } /// \function select(rlist, wlist, xlist[, timeout]) -STATIC mp_obj_t select_select(uint n_args, const mp_obj_t *args) { +STATIC mp_obj_t select_select(size_t n_args, const mp_obj_t *args) { // get array data from tuple/list arguments size_t rwx_len[3]; mp_obj_t *r_array, *w_array, *x_array; @@ -190,7 +190,7 @@ typedef struct _mp_obj_poll_t { } mp_obj_poll_t; /// \method register(obj[, eventmask]) -STATIC mp_obj_t poll_register(uint n_args, const mp_obj_t *args) { +STATIC mp_obj_t poll_register(size_t n_args, const mp_obj_t *args) { mp_obj_poll_t *self = MP_OBJ_TO_PTR(args[0]); mp_uint_t flags; if (n_args == 3) { |