Use maxi to clamp an int to a lower-bound

This commit is contained in:
Chris Robinson 2014-03-05 04:37:55 -08:00
parent fb1f9aad6e
commit 15b68fe694

View File

@ -1355,7 +1355,7 @@ static void DecodeMSADPCMBlock(ALshort *dst, const ALmsadpcm *src, ALint numchan
samples[i][0] = pred;
delta[i] = (MSADPCMAdaption[nibble&0x0f] * delta[i]) / 256;
delta[i] = maxu(16, delta[i]);
delta[i] = maxi(16, delta[i]);
*(dst++) = pred;
}