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/input.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'unix/input.c') diff --git a/unix/input.c b/unix/input.c index b2cf8efa8a..66b3314c98 100644 --- a/unix/input.c +++ b/unix/input.c @@ -158,7 +158,7 @@ void prompt_write_history(void) { #endif } -STATIC mp_obj_t mp_builtin_input(uint n_args, const mp_obj_t *args) { +STATIC mp_obj_t mp_builtin_input(mp_uint_t n_args, const mp_obj_t *args) { if (n_args == 1) { mp_obj_print(args[0], PRINT_STR); } @@ -171,5 +171,4 @@ STATIC mp_obj_t mp_builtin_input(uint n_args, const mp_obj_t *args) { free(line); return o; } - MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_builtin_input_obj, 0, 1, mp_builtin_input); -- cgit v1.2.3