diff options
author | Chris Robinson <[email protected]> | 2011-07-23 05:52:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-23 05:52:10 -0700 |
commit | fad80a4f92b185a4dc959f1fabd84c2d846b77f1 (patch) | |
tree | 9148883acfa8bcdc5fb049f52c71b49c61c1e4a6 /OpenAL32 | |
parent | 1b0a55f44ccbfb4fb9887fc6377fd634f03098ff (diff) |
Don't cast for the float versions of math functions
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alu.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index dfe600cb..9ce59955 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -17,31 +17,31 @@ #endif #ifdef HAVE_POWF -#define aluPow(x,y) ((ALfloat)powf((float)(x),(float)(y))) +#define aluPow(x,y) (powf((x),(y))) #else #define aluPow(x,y) ((ALfloat)pow((double)(x),(double)(y))) #endif #ifdef HAVE_SQRTF -#define aluSqrt(x) ((ALfloat)sqrtf((float)(x))) +#define aluSqrt(x) (sqrtf((x))) #else #define aluSqrt(x) ((ALfloat)sqrt((double)(x))) #endif #ifdef HAVE_ACOSF -#define aluAcos(x) ((ALfloat)acosf((float)(x))) +#define aluAcos(x) (acosf((x))) #else #define aluAcos(x) ((ALfloat)acos((double)(x))) #endif #ifdef HAVE_ATANF -#define aluAtan(x) ((ALfloat)atanf((float)(x))) +#define aluAtan(x) (atanf((x))) #else #define aluAtan(x) ((ALfloat)atan((double)(x))) #endif #ifdef HAVE_FABSF -#define aluFabs(x) ((ALfloat)fabsf((float)(x))) +#define aluFabs(x) (fabsf((x))) #else #define aluFabs(x) ((ALfloat)fabs((double)(x))) #endif |