diff options
author | Paul Gilbert | 2017-02-10 21:34:15 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-02-10 21:34:15 -0500 |
commit | f9cd01fe0384dc3f59c7da3f5f2dc269a53a47e0 (patch) | |
tree | 6e57c64d76a15807cbac4838bc772d02cb6f05bd /engines/titanic | |
parent | 75598ba6a47bed2dd2bb056f033f8f25b0975fe6 (diff) | |
download | scummvm-rg350-f9cd01fe0384dc3f59c7da3f5f2dc269a53a47e0.tar.gz scummvm-rg350-f9cd01fe0384dc3f59c7da3f5f2dc269a53a47e0.tar.bz2 scummvm-rg350-f9cd01fe0384dc3f59c7da3f5f2dc269a53a47e0.zip |
TITANIC: Compilation fix for audio buffer stream class
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/sound/wave_file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/sound/wave_file.cpp b/engines/titanic/sound/wave_file.cpp index 0d46dc0439..76a09a573c 100644 --- a/engines/titanic/sound/wave_file.cpp +++ b/engines/titanic/sound/wave_file.cpp @@ -48,7 +48,7 @@ public: }; int AudioBufferStream::readBuffer(int16 *buffer, const int numSamples) { - int samplesToRead = MIN((const uint)numSamples, _audioBuffer->getBytesToRead() / sizeof(uint16)); + int samplesToRead = MIN((const int)numSamples, (const int)(_audioBuffer->getBytesToRead() / sizeof(uint16))); const int16 *src = _audioBuffer->getReadPtr(); Common::copy(src, src + samplesToRead, buffer); |