summaryrefslogtreecommitdiff
path: root/core/math/geometry_3d.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-27 10:08:26 +0200
committerGitHub <noreply@github.com>2022-04-27 10:08:26 +0200
commit8dfa12cae729258155fbad51ed41f1bb3ad1006a (patch)
tree15a556638bbff71f35e8b42879ccd6570e1f64fb /core/math/geometry_3d.cpp
parentf8cfff2aa6adcb2665f237d487611f8b2a63099f (diff)
parentde4c97758af117af97fad58e4a80ffeba0154ba8 (diff)
Merge pull request #59979 from bruvzg/cpp_check2
Diffstat (limited to 'core/math/geometry_3d.cpp')
-rw-r--r--core/math/geometry_3d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/geometry_3d.cpp b/core/math/geometry_3d.cpp
index bd22bffb1f..f76de079e4 100644
--- a/core/math/geometry_3d.cpp
+++ b/core/math/geometry_3d.cpp
@@ -904,8 +904,8 @@ Vector<Vector3> Geometry3D::compute_convex_mesh_points(const Plane *p_planes, in
/* dt of 1d function using squared distance */
static void edt(float *f, int stride, int n) {
float *d = (float *)alloca(sizeof(float) * n + sizeof(int) * n + sizeof(float) * (n + 1));
- int *v = (int *)&(d[n]);
- float *z = (float *)&v[n];
+ int *v = reinterpret_cast<int *>(&(d[n]));
+ float *z = reinterpret_cast<float *>(&v[n]);
int k = 0;
v[0] = 0;