diff options
| author | Thea Flowers <me@thea.codes> | 2019-11-05 17:49:47 -0800 |
|---|---|---|
| committer | Thea Flowers <me@thea.codes> | 2019-11-05 17:49:47 -0800 |
| commit | 3439c3619753955b6368fc91acec3e14c76c6dd3 (patch) | |
| tree | 8b8552006899c37bdc5a8de81505f4873ff70d1e | |
| parent | c7195c4bc5a43f0aae731f3030961b60d1db4cac (diff) | |
Fix bad call to mp_arg_check_num
| -rw-r--r-- | py/objfun.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/py/objfun.c b/py/objfun.c index fd55e532a..7e5899456 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -546,9 +546,7 @@ STATIC mp_uint_t convert_obj_for_inline_asm(mp_obj_t obj) { STATIC mp_obj_t fun_asm_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args) { mp_obj_fun_asm_t *self = self_in; - #pragma GCC diagnostic ignored "-Wint-conversion" - mp_arg_check_num(n_args, n_kw, self->n_args, self->n_args, false); - #pragma GCC diagnostic pop + mp_arg_check_num_kw_array(n_args, n_kw, self->n_args, self->n_args, false); void *fun = MICROPY_MAKE_POINTER_CALLABLE(self->fun_data); |
