diff options
-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); |