diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-14 10:55:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-14 10:56:00 +0300 |
commit | 85004461ea374cceba6af1b4ec41d0d726133617 (patch) | |
tree | 603235ab176f0f90939c7656f7005fe2c47635b4 /source/blender | |
parent | a79d47b14ecdb0950d2d243b28e0d046a78f23c3 (diff) |
Workaround for non-bleeding edge compilers and const cast of pointer arrays.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_remap.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); |