From 2b0a63003fca82f1bc5d1e36cf44d0018dc1b257 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 24 Sep 2011 00:52:58 -0700 Subject: Cast a 64-bit variable to a 32-bit int --- Alc/mixer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Alc/mixer.c') diff --git a/Alc/mixer.c b/Alc/mixer.c index 2c7af645..4112abcf 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -592,7 +592,8 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo) DataSize64 += BufferPadding+BufferPrePadding; DataSize64 *= FrameSize; - BufferSize = ((DataSize64 > STACK_DATA_SIZE) ? STACK_DATA_SIZE : DataSize64); + BufferSize = (ALuint)((DataSize64 > STACK_DATA_SIZE) ? + STACK_DATA_SIZE : DataSize64); BufferSize -= BufferSize%FrameSize; if(Source->lSourceType == AL_STATIC) -- cgit v1.2.3