diff options
author | Chris Robinson <[email protected]> | 2008-02-08 21:01:05 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-02-08 21:01:05 -0800 |
commit | 3d5fa917039579171501d4cc224a8c12a3ec6c66 (patch) | |
tree | 0101c17142f15b61ccf9ecee6c9722fbd8d5bf6c /Alc | |
parent | e8acfb069c6075aed6765aaa4d0a1f0e7171f3f5 (diff) |
Remove unnecessary casting
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |