[Bf-blender-cvs] [4acd615a001] refactor-mesh-position-generic: Fix: Compile error
Hans Goudey
noreply at git.blender.org
Thu Dec 8 19:36:38 CET 2022
Commit: 4acd615a0015c148d885cae3a73f2fd6af66c31c
Author: Hans Goudey
Date: Thu Dec 8 12:36:34 2022 -0600
Branches: refactor-mesh-position-generic
https://developer.blender.org/rB4acd615a0015c148d885cae3a73f2fd6af66c31c
Fix: Compile error
===================================================================
M source/blender/blenkernel/intern/mesh_remap.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/mesh_remap.cc b/source/blender/blenkernel/intern/mesh_remap.cc
index 4c97a6226dd..e6a6f16400a 100644
--- a/source/blender/blenkernel/intern/mesh_remap.cc
+++ b/source/blender/blenkernel/intern/mesh_remap.cc
@@ -179,8 +179,8 @@ static void mesh_calc_eigen_matrix(const float (*positions)[3],
if (positions) {
float(*co)[3];
- cos = static_cast<float(*)[3]>(MEM_mallocN(sizeof(*cos) * (size_t)numverts, __func__));
- memcpy(cos, positions, sizeof(float[3]) * numverts);
+ cos = static_cast<float(*)[3]>(MEM_mallocN(sizeof(*cos) * size_t(numverts), __func__));
+ memcpy(cos, positions, sizeof(float[3]) * size_t(numverts));
/* TODO(sergey): For until we officially drop all compilers which
* doesn't handle casting correct we use workaround to avoid explicit
* cast here.
More information about the Bf-blender-cvs
mailing list