Skip to content
Snippets Groups Projects
Commit 147c80bf authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

modstruct: Use MP_OBJ_FUN_ARGS_MAX instead of -1.

parent 5ebd5f0f
Branches
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ STATIC mp_obj_t struct_pack(uint n_args, mp_obj_t *args) {
}
return res;
}
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(struct_pack_obj, 1, -1, struct_pack);
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(struct_pack_obj, 1, MP_OBJ_FUN_ARGS_MAX, struct_pack);
STATIC const mp_map_elem_t mp_module_struct_globals_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_struct) },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment