diff options
Diffstat (limited to 'engines/bladerunner')
-rw-r--r-- | engines/bladerunner/aud_stream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/aud_stream.cpp b/engines/bladerunner/aud_stream.cpp index 4eadb5baf6..e86f6d5096 100644 --- a/engines/bladerunner/aud_stream.cpp +++ b/engines/bladerunner/aud_stream.cpp @@ -95,7 +95,7 @@ int AudStream::readBuffer(int16 *buffer, const int numSamples) { samplesRead += 2 * bytesConsumed; } } else { - int bytesToCopy = MIN(2 * numSamples, _end - _p); + int bytesToCopy = MIN(2 * numSamples, (int)(_end - _p)); memcpy(buffer, _p, bytesToCopy); _p += bytesToCopy; samplesRead = bytesToCopy / 2; |