8000 modstruct: Use MP_OBJ_FUN_ARGS_MAX instead of -1. · hellcoderz/micropython@147c80b · GitHub
[go: up one dir, main page]

Skip to content

Commit 147c80b

Browse files
committed
modstruct: Use MP_OBJ_FUN_ARGS_MAX instead of -1.
1 parent 5ebd5f0 commit 147c80b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/modstruct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ STATIC mp_obj_t struct_pack(uint n_args, mp_obj_t *args) {
110110
}
111111
return res;
112112
}
113-
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(struct_pack_obj, 1, -1, struct_pack);
113+
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(struct_pack_obj, 1, MP_OBJ_FUN_ARGS_MAX, struct_pack);
114114

115115
STATIC const mp_map_elem_t mp_module_struct_globals_table[] = {
116116
{ MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_struct) },

0 commit comments

Comments
 (0)
0