aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALu.c')
-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;