Fix bad call to mp_arg_check_num

This commit is contained in:
Thea Flowers 2019-11-05 17:49:47 -08:00
parent c7195c4bc5
commit 3439c36197
No known key found for this signature in database
GPG Key ID: 3CA6321E8CACD921

View File

@ -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) { 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; mp_obj_fun_asm_t *self = self_in;
#pragma GCC diagnostic ignored "-Wint-conversion" mp_arg_check_num_kw_array(n_args, n_kw, self->n_args, self->n_args, false);
mp_arg_check_num(n_args, n_kw, self->n_args, self->n_args, false);
#pragma GCC diagnostic pop
void *fun = MICROPY_MAKE_POINTER_CALLABLE(self->fun_data); void *fun = MICROPY_MAKE_POINTER_CALLABLE(self->fun_data);