diff options
Diffstat (limited to 'py/objbool.c')
-rw-r--r-- | py/objbool.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/py/objbool.c b/py/objbool.c index 66f9e902a6..fac26f31e7 100644 --- a/py/objbool.c +++ b/py/objbool.c @@ -22,8 +22,9 @@ static void bool_print(void (*print)(void *env, const char *fmt, ...), void *env } } -// args are reverse in the array -static mp_obj_t bool_make_new(mp_obj_t type_in, int n_args, const mp_obj_t *args) { +static mp_obj_t bool_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) { + // TODO check n_kw == 0 + switch (n_args) { case 0: return mp_const_false; case 1: if (rt_is_true(args[0])) { return mp_const_true; } else { return mp_const_false; } |