diff options
author | Chris Robinson <[email protected]> | 2011-09-22 00:35:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-22 00:35:08 -0700 |
commit | 43350f9066f0c28ac8ff6269783db222508dec45 (patch) | |
tree | dc74c80fcbb2f7d39f3124e56605cac656e56e23 /Alc/ALu.c | |
parent | 0988023d30d16563461f92ffcad6a5fc1d5766f3 (diff) |
Silence some MSVC precision warnings
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |