mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Remove unnecessary casts on FIXED_TO_FLOAT/FLOAT_TO_FIXED
This commit is contained in:
parent
48e8c9058a
commit
d2a5a807c8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue