You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix more issues found by cppcheck.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user