aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/data/snd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lastexpress/data/snd.cpp')
-rw-r--r--engines/lastexpress/data/snd.cpp2
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