aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-02-08 21:01:05 -0800
committerChris Robinson <[email protected]>2008-02-08 21:01:05 -0800
commit3d5fa917039579171501d4cc224a8c12a3ec6c66 (patch)
tree0101c17142f15b61ccf9ecee6c9722fbd8d5bf6c /Alc
parente8acfb069c6075aed6765aaa4d0a1f0e7171f3f5 (diff)
Remove unnecessary casting
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 756dce20..c88261f9 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -202,8 +202,8 @@ static __inline ALvoid aluNormalize(ALfloat *inVector)
{
ALfloat length, inverse_length;
- length = (ALfloat)aluSqrt(aluDotproduct(inVector, inVector));
- if(length != 0)
+ length = aluSqrt(aluDotproduct(inVector, inVector));
+ if(length != 0.0f)
{
inverse_length = 1.0f/length;
inVector[0] *= inverse_length;