aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-24 00:52:58 -0700
committerChris Robinson <[email protected]>2011-09-24 00:52:58 -0700
commit2b0a63003fca82f1bc5d1e36cf44d0018dc1b257 (patch)
tree54ad0c71c847b55f1481d7a8808f5d289b747bd6 /Alc
parentdeef98658ba65ea547ad440f20889273715d17fd (diff)
Cast a 64-bit variable to a 32-bit int
Diffstat (limited to 'Alc')
-rw-r--r--Alc/mixer.c3
1 files changed, 2 insertions, 1 deletions
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)