From 148846c02db027ce803299ffd171cb14db48538d Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 6 Oct 2019 06:41:09 +0300 Subject: [PATCH] common: explicitly cast literals to floats --- common/xash3d_types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/xash3d_types.h b/common/xash3d_types.h index ebd94bf9..1c82b353 100644 --- a/common/xash3d_types.h +++ b/common/xash3d_types.h @@ -49,9 +49,9 @@ typedef integer64 longtime_t; #define MAX_USERMSG_LENGTH 2048 // don't modify it's relies on a client-side definitions #define BIT( n ) ( 1U << ( n )) -#define GAMMA ( 2.2 ) // Valve Software gamma -#define INVGAMMA ( 1.0 / 2.2 ) // back to 1.0 -#define TEXGAMMA ( 0.9 ) // compensate dim textures +#define GAMMA ( 2.2f ) // Valve Software gamma +#define INVGAMMA ( 1.0f / 2.2f ) // back to 1.0 +#define TEXGAMMA ( 0.9f ) // compensate dim textures #define SetBits( iBitVector, bits ) ((iBitVector) = (iBitVector) | (bits)) #define ClearBits( iBitVector, bits ) ((iBitVector) = (iBitVector) & ~(bits)) #define FBitSet( iBitVector, bit ) ((iBitVector) & (bit))