diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/zork_raw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/zork_raw.cpp b/engines/zvision/zork_raw.cpp index 55493da9b3..21613d9043 100644 --- a/engines/zvision/zork_raw.cpp +++ b/engines/zvision/zork_raw.cpp @@ -127,7 +127,7 @@ int RawZorkStream::readBuffer(int16 *buffer, const int numSamples) { sample = -sample; sample += _lastSample[channel].sample; - sample = CLIP(sample, -32768, 32767); + sample = CLIP<int32>(sample, -32768, 32767); buffer[bytesRead - 1] = (int16)sample; |