From 70c10f82430fcf9e8d523075563760b889c3bb83 Mon Sep 17 00:00:00 2001 From: Peter Kohaut Date: Fri, 30 Sep 2016 23:58:20 +0200 Subject: BLADERUNNER: fixed compiler error in gcc and clang (was working in msvc14) --- engines/bladerunner/aud_stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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; -- cgit v1.2.3