From 64dd688dddbc4d00e3fa629d0348632df2c1fa9e Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Sat, 9 Mar 2024 17:05:34 -0500 Subject: Make JUT_ASSERT macro more accurate (COND) == 0 and !(COND) both only match sometimes, but (void)((COND) || ...) seems to work all the time. --- src/SSystem/SComponent/c_m2d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SSystem/SComponent') diff --git a/src/SSystem/SComponent/c_m2d.cpp b/src/SSystem/SComponent/c_m2d.cpp index 2009fd56..f3fe3a90 100644 --- a/src/SSystem/SComponent/c_m2d.cpp +++ b/src/SSystem/SComponent/c_m2d.cpp @@ -17,7 +17,7 @@ void cM2d_CrossCirLin(cM2dGCir& circle, f32 x0, f32 y0, f32 x1, f32 y1, f32* pDs f32 c = (fVar1 * fVar1 + fVar15 * fVar15) - (circle.GetR() * circle.GetR()); f32 t; - JUT_ASSERT_FLOAT(0x47, c < 0.0f); + JUT_ASSERT(0x47, c < 0.0f); if (cM3d_IsZero(dVar13)) { if (!cM3d_IsZero(dVar14)) { @@ -48,7 +48,7 @@ void cM2d_CrossCirLin(cM2dGCir& circle, f32 x0, f32 y0, f32 x1, f32 y1, f32* pDs *pDstX = x0; *pDstY = y0; } else { - JUT_ASSERT_FLOAT(0x89, t >= 0.0f); + JUT_ASSERT(0x89, t >= 0.0f); *pDstX = x0 + (t * x1); *pDstY = y0 + (t * y1); } -- cgit v1.2.3