Skip to content

Commit e0954d4

Browse files
committed
objtype: Work around stupid strict aliasing check.
1 parent ba742ed commit e0954d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/objtype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ STATIC mp_obj_t class_make_new(mp_obj_t self_in, uint n_args, uint n_kw, const m
189189
// now call Python class __init__ function with all args
190190
mp_obj_t init_ret;
191191
if (n_args == 0 && n_kw == 0) {
192-
init_ret = mp_call_function_n_kw(init_fn[0], 1, 0, (mp_obj_t*)&o);
192+
init_ret = mp_call_function_n_kw(init_fn[0], 1, 0, (mp_obj_t*)(void*)&o);
193193
} else {
194194
mp_obj_t *args2 = m_new(mp_obj_t, 1 + n_args + 2 * n_kw);
195195
args2[0] = o;

0 commit comments

Comments
 (0)