Skip to content

Commit eb7e32d

Browse files
committed
Added field initializers
1 parent 4d3ab4f commit eb7e32d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/objint.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ STATIC mp_obj_t int_from_bytes(size_t n_args, const mp_obj_t *pos_args, mp_map_t
485485

486486
enum { ARG_bytes, ARG_byteorder, ARG_signed };
487487
static const mp_arg_t allowed_args[] = {
488-
{ MP_QSTR_bytes, MP_ARG_REQUIRED | MP_ARG_OBJ },
489-
{ MP_QSTR_byteorder, MP_ARG_REQUIRED | MP_ARG_OBJ },
488+
{ MP_QSTR_bytes, MP_ARG_REQUIRED | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} },
489+
{ MP_QSTR_byteorder, MP_ARG_REQUIRED | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} },
490490
{ MP_QSTR_signed, MP_ARG_KW_ONLY | MP_ARG_BOOL, {.u_bool = false} },
491491
};
492492
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];

0 commit comments

Comments
 (0)