From a8a3ab48da5a151a2796a0303e3741d3c4f24f96 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 26 Mar 2017 17:19:08 +1100 Subject: [PATCH] extmod/moduselect: Update to use size_t for array accessor. --- extmod/moduselect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extmod/moduselect.c b/extmod/moduselect.c index 5b00f6badd..46dbe42e11 100644 --- a/extmod/moduselect.c +++ b/extmod/moduselect.c @@ -113,7 +113,7 @@ STATIC mp_uint_t poll_map_poll(mp_map_t *poll_map, mp_uint_t *rwx_num) { /// \function select(rlist, wlist, xlist[, timeout]) STATIC mp_obj_t select_select(uint n_args, const mp_obj_t *args) { // get array data from tuple/list arguments - mp_uint_t rwx_len[3]; + size_t rwx_len[3]; mp_obj_t *r_array, *w_array, *x_array; mp_obj_get_array(args[0], &rwx_len[0], &r_array); mp_obj_get_array(args[1], &rwx_len[1], &w_array);