Remove unnecessary casts on FIXED_TO_FLOAT/FLOAT_TO_FIXED

This commit is contained in:
James R 2020-03-28 20:44:30 -07:00
parent 48e8c9058a
commit d2a5a807c8

View file

@ -38,8 +38,8 @@ typedef INT32 fixed_t;
/*!
\brief convert fixed_t into floating number
*/
#define FIXED_TO_FLOAT(x) (((float)(x)) / ((float)FRACUNIT))
#define FLOAT_TO_FIXED(f) (fixed_t)((f) * ((float)FRACUNIT))
#define FIXED_TO_FLOAT(x) ((x) / (float)FRACUNIT)
#define FLOAT_TO_FIXED(f) (fixed_t)((f) * FRACUNIT)
#if defined (__WATCOMC__) && FRACBITS == 16