From 9bd3b88a58ebcd1a3546cc1baadc3472f34b2569 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 13 Oct 2012 11:00:43 -0700 Subject: Silence an implicit int-to-float conversion warning on MSVC --- Alc/ALu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index 43653048..99c33878 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -387,7 +387,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) } else { - DryGain *= lerp(1.0f, 1.0f/sqrtf(Device->NumChan), hwidth/F_PI); + DryGain *= lerp(1.0f, 1.0f/sqrtf((float)Device->NumChan), hwidth/F_PI); for(c = 0;c < num_channels;c++) { /* Special-case LFE */ -- cgit v1.2.3