Skip to content

Commit 3439c36

Browse files
committed
Fix bad call to mp_arg_check_num
1 parent c7195c4 commit 3439c36

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

py/objfun.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,7 @@ STATIC mp_uint_t convert_obj_for_inline_asm(mp_obj_t obj) {
546546
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) {
547547
mp_obj_fun_asm_t *self = self_in;
548548

549-
#pragma GCC diagnostic ignored "-Wint-conversion"
550-
mp_arg_check_num(n_args, n_kw, self->n_args, self->n_args, false);
551-
#pragma GCC diagnostic pop
549+
mp_arg_check_num_kw_array(n_args, n_kw, self->n_args, self->n_args, false);
552550

553551
void *fun = MICROPY_MAKE_POINTER_CALLABLE(self->fun_data);
554552

0 commit comments

Comments
 (0)