diff options
author | Chris Robinson <[email protected]> | 2011-09-24 00:52:58 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-24 00:52:58 -0700 |
commit | 2b0a63003fca82f1bc5d1e36cf44d0018dc1b257 (patch) | |
tree | 54ad0c71c847b55f1481d7a8808f5d289b747bd6 /Alc/mixer.c | |
parent | deef98658ba65ea547ad440f20889273715d17fd (diff) |
Cast a 64-bit variable to a 32-bit int
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r-- | Alc/mixer.c | 3 |
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) |