From e0954d426fdd1cdf2027963c80977ea373acb19e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 2 May 2014 16:14:05 +0300 Subject: objtype: Work around stupid strict aliasing check. --- py/objtype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objtype.c') diff --git a/py/objtype.c b/py/objtype.c index dfaa3ff434..f8b0b5d285 100644 --- a/py/objtype.c +++ b/py/objtype.c @@ -189,7 +189,7 @@ STATIC mp_obj_t class_make_new(mp_obj_t self_in, uint n_args, uint n_kw, const m // now call Python class __init__ function with all args mp_obj_t init_ret; if (n_args == 0 && n_kw == 0) { - init_ret = mp_call_function_n_kw(init_fn[0], 1, 0, (mp_obj_t*)&o); + init_ret = mp_call_function_n_kw(init_fn[0], 1, 0, (mp_obj_t*)(void*)&o); } else { mp_obj_t *args2 = m_new(mp_obj_t, 1 + n_args + 2 * n_kw); args2[0] = o; -- cgit v1.2.3