From 15bbe9892ecb8445cac36b15d1ad94f8140cfdf3 Mon Sep 17 00:00:00 2001 From: Xav101 Date: Fri, 14 Nov 2025 22:34:42 -0500 Subject: [PATCH] public: mathlib: add parenthesis to fix ambiguous order of operations --- public/xash3d_mathlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/xash3d_mathlib.h b/public/xash3d_mathlib.h index 0c678d5b..ded280b5 100644 --- a/public/xash3d_mathlib.h +++ b/public/xash3d_mathlib.h @@ -267,7 +267,7 @@ static inline float SwapFloat( float bf ) static inline int IS_NAN( float x ) { int32_t i = FloatAsInt( x ); // only C - return i & ( 255 << 23 ) == ( 255 << 23 ); + return ( i & ( 255 << 23 ) ) == ( 255 << 23 ); } #else #define IS_NAN isnan