modstruct: Use MP_OBJ_FUN_ARGS_MAX instead of -1.

This commit is contained in:
Paul Sokolovsky 2014-05-11 22:50:27 +03:00
parent 5ebd5f0f19
commit 147c80bf7c
1 changed files with 1 additions and 1 deletions

View File

@ -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) },