aboutsummaryrefslogtreecommitdiff
path: root/sound/adpcm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/adpcm.cpp')
-rw-r--r--sound/adpcm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/adpcm.cpp b/sound/adpcm.cpp
index 6b50c22f04..68ce9fafb0 100644
--- a/sound/adpcm.cpp
+++ b/sound/adpcm.cpp
@@ -263,7 +263,7 @@ int ADPCMInputStream::readBufferApple(int16 *buffer, const int numSamples) {
_status.ima_ch[i].stepIndex = temp & 0x007F;
// Clip the step index
- _status.ima_ch[i].stepIndex = CLIP(_status.ima_ch[i].stepIndex, 0, 88);
+ _status.ima_ch[i].stepIndex = CLIP<int32>(_status.ima_ch[i].stepIndex, 0, 88);
_blockPos[i] = 2;
}