From 3d5fa917039579171501d4cc224a8c12a3ec6c66 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 8 Feb 2008 21:01:05 -0800 Subject: Remove unnecessary casting --- Alc/ALu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/ALu.c') 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; -- cgit v1.2.3