aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2010-09-17 21:28:24 +0000
committerJohannes Schickel2010-09-17 21:28:24 +0000
commit9f273b31aab8139e04391b22b27198cacdce4115 (patch)
tree2907afee3548edccee504eb28045f7a917f29445 /engines
parent5abbe7204eee6af75348c171abafe2767b416002 (diff)
downloadscummvm-rg350-9f273b31aab8139e04391b22b27198cacdce4115.tar.gz
scummvm-rg350-9f273b31aab8139e04391b22b27198cacdce4115.tar.bz2
scummvm-rg350-9f273b31aab8139e04391b22b27198cacdce4115.zip
SCI: Fix compilation on AmigaOS.
svn-id: r52784
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sound/drivers/cms.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sound/drivers/cms.cpp b/engines/sci/sound/drivers/cms.cpp
index 7f3ffa014e..b7b13550c0 100644
--- a/engines/sci/sound/drivers/cms.cpp
+++ b/engines/sci/sound/drivers/cms.cpp
@@ -588,7 +588,7 @@ void MidiDriver_CMS::generateSamples(int16 *buffer, int len) {
}
}
- int32 render = MIN(len, _samplesTillCallback);
+ int32 render = MIN<int32>(len, _samplesTillCallback);
len -= render;
_samplesTillCallback -= render;
_cms->readBuffer(buffer, render);