From eb7e32da9982654f36d6005fd71ecf7b9eddc44d Mon Sep 17 00:00:00 2001 From: Isaac Benitez Date: Wed, 6 Jul 2022 09:15:18 -0700 Subject: [PATCH] Added field initializers --- py/objint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/objint.c b/py/objint.c index b44a2e3b4a..7f8d08d37a 100644 --- a/py/objint.c +++ b/py/objint.c @@ -485,8 +485,8 @@ STATIC mp_obj_t int_from_bytes(size_t n_args, const mp_obj_t *pos_args, mp_map_t enum { ARG_bytes, ARG_byteorder, ARG_signed }; static const mp_arg_t allowed_args[] = { - { MP_QSTR_bytes, MP_ARG_REQUIRED | MP_ARG_OBJ }, - { MP_QSTR_byteorder, MP_ARG_REQUIRED | MP_ARG_OBJ }, + { MP_QSTR_bytes, MP_ARG_REQUIRED | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, + { MP_QSTR_byteorder, MP_ARG_REQUIRED | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, { MP_QSTR_signed, MP_ARG_KW_ONLY | MP_ARG_BOOL, {.u_bool = false} }, }; mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];