aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-13 11:00:43 -0700
committerChris Robinson <[email protected]>2012-10-13 11:00:43 -0700
commit9bd3b88a58ebcd1a3546cc1baadc3472f34b2569 (patch)
treeae70e79f468c9273fec80f71dd9f2182b4de0d34 /Alc
parente60281c9277c46822f2f6b844c4910c3e1e55298 (diff)
Silence an implicit int-to-float conversion warning on MSVC
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
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 */