From 2acdcba8d19cc84fb06f0fbe1df4bc26c0e2c009 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 22 Mar 2020 10:41:23 -0700 Subject: Silence a potential type truncation warning --- alc/voice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'alc/voice.cpp') 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(gotBytes) < needBytes) { mFlags |= VOICE_CALLBACK_STOPPED; - mNumCallbackSamples += static_cast(gotBytes) / FrameSize; + mNumCallbackSamples += static_cast(static_cast(gotBytes) / + FrameSize); } else mNumCallbackSamples = toLoad; -- cgit v1.2.3