aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-22 00:35:08 -0700
committerChris Robinson <[email protected]>2011-09-22 00:35:08 -0700
commit43350f9066f0c28ac8ff6269783db222508dec45 (patch)
treedc74c80fcbb2f7d39f3124e56605cac656e56e23 /Alc/ALu.c
parent0988023d30d16563461f92ffcad6a5fc1d5766f3 (diff)
Silence some MSVC precision warnings
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 07dc3580..670df970 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -161,7 +161,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
ALSource->Params.Step = maxstep<<FRACTIONBITS;
else
{
- ALSource->Params.Step = Pitch*FRACTIONONE;
+ ALSource->Params.Step = (ALint)(Pitch*FRACTIONONE);
if(ALSource->Params.Step == 0)
ALSource->Params.Step = 1;
}
@@ -676,7 +676,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
ALSource->Params.Step = maxstep<<FRACTIONBITS;
else
{
- ALSource->Params.Step = Pitch*FRACTIONONE;
+ ALSource->Params.Step = (ALint)(Pitch*FRACTIONONE);
if(ALSource->Params.Step == 0)
ALSource->Params.Step = 1;
}