public: mathlib: add parenthesis to fix ambiguous order of operations

This commit is contained in:
Xav101
2025-11-14 22:34:42 -05:00
committed by a1batross
parent 7236094421
commit 15bbe9892e

View File

@@ -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