diff options
author | anotherguest | 2011-10-11 09:33:37 +0200 |
---|---|---|
committer | anotherguest | 2011-10-11 09:33:37 +0200 |
commit | 31201f93d8b7df2374969a21d174949cf9539489 (patch) | |
tree | 8720f7e983a2e89ef1d5fb25430fd14f78c4f6dc /engines/lastexpress/data | |
parent | 3d48f2199f50d998d46ebe0bbad16b0cd73ad546 (diff) | |
download | scummvm-rg350-31201f93d8b7df2374969a21d174949cf9539489.tar.gz scummvm-rg350-31201f93d8b7df2374969a21d174949cf9539489.tar.bz2 scummvm-rg350-31201f93d8b7df2374969a21d174949cf9539489.zip |
Last Express: CLIP should use a <int> template to compile correctly.
Diffstat (limited to 'engines/lastexpress/data')
-rw-r--r-- | engines/lastexpress/data/snd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lastexpress/data/snd.cpp b/engines/lastexpress/data/snd.cpp index 6845be8808..a9bee6155d 100644 --- a/engines/lastexpress/data/snd.cpp +++ b/engines/lastexpress/data/snd.cpp @@ -396,7 +396,7 @@ public: // First nibble idx = data >> 4; step = stepTable[idx + _status.ima_ch[0].stepIndex / 4]; - sample = CLIP(imaTable[idx + _status.ima_ch[0].stepIndex / 4] + _status.ima_ch[0].last, -32767, 32767); + sample = CLIP<int>(imaTable[idx + _status.ima_ch[0].stepIndex / 4] + _status.ima_ch[0].last, -32767, 32767); buffer[samples] = (_stepAdjust2 * sample) >> _stepAdjust1; // Second nibble |