commit 935b2e1aa58040448edd97b0bf0f2123e989561f
parent cae30778d715efd903e10c8045b8a099bf1ea9d2
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 14 Mar 2024 12:06:31 +0100
Fix compilation errors in debug mode
Asserts used undeclared variables
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sdis_heat_path_conductive_wos_Xd.h b/src/sdis_heat_path_conductive_wos_Xd.h
@@ -61,7 +61,7 @@ compute_hit_side_2d
double z = 0;
/* Check pre-conditions */
- ASSERT(scn && hit && pos && !S2D_HIT_NONE(hit));
+ ASSERT(hit && pos && !S2D_HIT_NONE(hit));
/* Retrieve the positions of the intersected segment */
S2D(segment_get_vertex_attrib(&hit->prim, 0, S2D_POSITION, &p0));
@@ -92,7 +92,7 @@ compute_hit_side_3d
double dst = 0; /* Distance of pos to the plane */
/* Check pre-conditions */
- ASSERT(scn && hit && pos && !S3D_HIT_NONE(hit));
+ ASSERT(hit && pos && !S3D_HIT_NONE(hit));
/* Retrieve the positions of the intersected triangle */
S3D(triangle_get_vertex_attrib(&hit->prim, 0, S3D_POSITION, &v0));