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.
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs