@@ -96,6 +96,7 @@ static mp_obj_t native_base_init_wrapper(size_t n_args, const mp_obj_t *pos_args
9696 pos_args ++ ;
9797 n_args -- ;
9898
99+ // CIRCUITPY-CHANGE
99100 // CIRCUITPY-CHANGE
100101 mp_obj_t * args2 = m_malloc_items (n_args + 2 * n_kw );
101102 // copy in args
@@ -341,6 +342,7 @@ static mp_obj_t mp_obj_instance_make_new(const mp_obj_type_t *self, size_t n_arg
341342 mp_obj_t args2 [1 ] = {MP_OBJ_FROM_PTR (self )};
342343 new_ret = mp_call_function_n_kw (init_fn [0 ], 1 , 0 , args2 );
343344 } else {
345+ // CIRCUITPY-CHANGE
344346 // CIRCUITPY-CHANGE
345347 mp_obj_t * args2 = m_malloc_items (1 + n_args + 2 * n_kw );
346348 args2 [0 ] = MP_OBJ_FROM_PTR (self );
@@ -373,6 +375,7 @@ static mp_obj_t mp_obj_instance_make_new(const mp_obj_type_t *self, size_t n_arg
373375 if (n_args == 0 && n_kw == 0 ) {
374376 init_ret = mp_call_method_n_kw (0 , 0 , init_fn );
375377 } else {
378+ // CIRCUITPY-CHANGE
376379 // CIRCUITPY-CHANGE
377380 mp_obj_t * args2 = m_malloc_items (2 + n_args + 2 * n_kw );
378381 args2 [0 ] = init_fn [0 ];
@@ -1516,6 +1519,7 @@ mp_obj_t mp_obj_cast_to_native_base(mp_obj_t self_in, mp_const_obj_t native_type
15161519/******************************************************************************/
15171520// staticmethod and classmethod types (probably should go in a different file)
15181521
1522+ // CIRCUITPY-CHANGE: better arg name
15191523// CIRCUITPY-CHANGE: better arg name
15201524static mp_obj_t static_class_method_make_new (const mp_obj_type_t * type , size_t n_args , size_t n_kw , const mp_obj_t * args ) {
15211525 assert (type == & mp_type_staticmethod || type == & mp_type_classmethod );
0 commit comments