Skip to content

Commit a8a3ab4

Browse files
committed
extmod/moduselect: Update to use size_t for array accessor.
1 parent 6213ad7 commit a8a3ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extmod/moduselect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ STATIC mp_uint_t poll_map_poll(mp_map_t *poll_map, mp_uint_t *rwx_num) {
113113
/// \function select(rlist, wlist, xlist[, timeout])
114114
STATIC mp_obj_t select_select(uint n_args, const mp_obj_t *args) {
115115
// get array data from tuple/list arguments
116-
mp_uint_t rwx_len[3];
116+
size_t rwx_len[3];
117117
mp_obj_t *r_array, *w_array, *x_array;
118118
mp_obj_get_array(args[0], &rwx_len[0], &r_array);
119119
mp_obj_get_array(args[1], &rwx_len[1], &w_array);

0 commit comments

Comments
 (0)