diff --git a/source/blender/blenkernel/intern/mesh_remap.c b/source/blender/blenkernel/intern/mesh_remap.c index 32542d742dd..6ef167cc81f 100644 --- a/source/blender/blenkernel/intern/mesh_remap.c +++ b/source/blender/blenkernel/intern/mesh_remap.c @@ -184,10 +184,15 @@ static void mesh_calc_eigen_matrix( const MVert *mv; float (*co)[3]; - vcos = cos = MEM_mallocN(sizeof(*cos) * (size_t)numverts, __func__); + cos = MEM_mallocN(sizeof(*cos) * (size_t)numverts, __func__); for (i = 0, co = cos, mv = verts; i < numverts; i++, co++, mv++) { copy_v3_v3(*co, mv->co); } + /* TODO(sergey): For until we officially drop all compilers which + * doesn't handle casting correct we use workaround to avoid explicit + * cast here. + */ + vcos = (void*)cos; } unit_m4(r_mat);