From 1b0aab621baf081bf1cbeb38a29bd37fbc135cc7 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 3 Jan 2016 11:53:44 +0000 Subject: py: Change struct and macro for builtin fun so they can be type checked. --- unix/moduselect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unix/moduselect.c') diff --git a/unix/moduselect.c b/unix/moduselect.c index 537bd4796..7e0ec049f 100644 --- a/unix/moduselect.c +++ b/unix/moduselect.c @@ -52,7 +52,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(mp_uint_t n_args, const mp_obj_t *args) { mp_obj_poll_t *self = MP_OBJ_TO_PTR(args[0]); int fd = mp_obj_get_int(args[1]); mp_uint_t flags; @@ -129,7 +129,7 @@ MP_DEFINE_CONST_FUN_OBJ_3(poll_modify_obj, poll_modify); /// \method poll([timeout]) /// Timeout is in milliseconds. -STATIC mp_obj_t poll_poll(uint n_args, const mp_obj_t *args) { +STATIC mp_obj_t poll_poll(mp_uint_t n_args, const mp_obj_t *args) { mp_obj_poll_t *self = MP_OBJ_TO_PTR(args[0]); // work out timeout (it's given already in ms) -- cgit v1.2.3