From 13222d719d7a38b46cf0b02771acffea5d569d46 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 3 Aug 2019 13:05:42 -0700 Subject: Make a couple counts size_t --- alc/mixvoice.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'alc/mixvoice.cpp') diff --git a/alc/mixvoice.cpp b/alc/mixvoice.cpp index b1d7500a..06324397 100644 --- a/alc/mixvoice.cpp +++ b/alc/mixvoice.cpp @@ -624,6 +624,7 @@ void MixVoice(ALvoice *voice, ALvoice::State vstate, const ALuint SourceID, ALCc DstBufferSize &= ~3; } + ASSUME(DstBufferSize > 0); for(ALsizei chan{0};chan < NumChannels;chan++) { ALvoice::ChannelData &chandata = voice->mChans[chan]; -- cgit v1.2.3