Last Express: CLIP should use a <int> template to compile correctly.

This commit is contained in:
anotherguest 2011-10-11 09:33:37 +02:00
parent 3d48f2199f
commit 31201f93d8

View file

@ -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