call common validation function
Co-authored-by: MicroDev <70126934+microdev1@users.noreply.github.com>
This commit is contained in:
parent
349dedca54
commit
98c546bf57
@ -167,9 +167,7 @@ void shared_modules_struct_pack_into(mp_obj_t fmt_in, byte *p, byte *end_p, size
|
||||
}
|
||||
fmt++;
|
||||
}
|
||||
if (i != n_args) {
|
||||
mp_raise_ValueError_varg(translate("%q length must be %d"), MP_QSTR_args, i);
|
||||
}
|
||||
(void)mp_arg_validate_length(n_args, i, MP_QSTR_args);
|
||||
}
|
||||
|
||||
mp_obj_tuple_t *shared_modules_struct_unpack_from(mp_obj_t fmt_in, byte *p, byte *end_p, bool exact_size) {
|
||||
|
Loading…
Reference in New Issue
Block a user