We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87404ee commit e54dfecCopy full SHA for e54dfec
micropython/modules/pint/pint.cpp
@@ -80,7 +80,7 @@ mp_obj_t network_pint_make_new(const mp_obj_type_t *type, size_t n_args, size_t
80
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
81
mp_arg_parse_all_kw_array(n_args, n_kw, all_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
82
83
- nic = m_new_obj_with_finaliser(_pint_obj_t);
+ nic = (_pint_obj_t *)m_malloc_with_finaliser(sizeof(_pint_obj_t));
84
nic->base.type = &mod_network_nic_type_pint;
85
86
mp_obj_t impl = args[ARG_impl].u_obj;
0 commit comments