aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/audiostream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp
index 8ea72851e2..57d2e097bf 100644
--- a/sound/audiostream.cpp
+++ b/sound/audiostream.cpp
@@ -277,7 +277,7 @@ int LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16 *buffe
while (samples > 0 && ((_diskLeft > 0 || _bufferLeft > 0) || (_currentBlock != _audioBlockCount - 1)) ) {
// Output samples in the buffer to the output
- int len = MIN(samples, _bufferLeft);
+ int len = MIN<int>(samples, _bufferLeft);
samples -= len;
_bufferLeft -= len;