aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-03-22 10:41:23 -0700
committerChris Robinson <[email protected]>2020-03-22 10:41:23 -0700
commit2acdcba8d19cc84fb06f0fbe1df4bc26c0e2c009 (patch)
tree2cfe42d178b6a075932f6ed791d2eab46dbbaa07 /alc
parentf3ff28fb2ac918eaf08f56f920dd627caf10f987 (diff)
Silence a potential type truncation warning
Diffstat (limited to 'alc')
-rw-r--r--alc/voice.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/voice.cpp b/alc/voice.cpp
index 19b4da2d..8e439b8f 100644
--- a/alc/voice.cpp
+++ b/alc/voice.cpp
@@ -670,7 +670,8 @@ void ALvoice::mix(const State vstate, ALCcontext *Context, const ALuint SamplesT
else if(static_cast<ALuint>(gotBytes) < needBytes)
{
mFlags |= VOICE_CALLBACK_STOPPED;
- mNumCallbackSamples += static_cast<ALuint>(gotBytes) / FrameSize;
+ mNumCallbackSamples += static_cast<ALuint>(static_cast<ALuint>(gotBytes) /
+ FrameSize);
}
else
mNumCallbackSamples = toLoad;