mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
public: mathlib: add parenthesis to fix ambiguous order of operations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user