Skip to content

Commit

Permalink
BLADERUNNER: fixed compiler error in gcc and clang (was working in ms…
Browse files Browse the repository at this point in the history
…vc14)
  • Loading branch information
peterkohaut committed Sep 30, 2016
1 parent 0c7d323 commit 70c10f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/bladerunner/aud_stream.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 70c10f8

Please sign in to comment.