aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alBuffer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-05 04:37:55 -0800
committerChris Robinson <[email protected]>2014-03-05 04:37:55 -0800
commit15b68fe694f62af249b1c422a7be0843c420a353 (patch)
tree03c0067740ce5209e32d6f4c277709c10d5b9fdb /OpenAL32/alBuffer.c
parentfb1f9aad6e2190d43c583ccba8495056d41a1156 (diff)
Use maxi to clamp an int to a lower-bound
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r--OpenAL32/alBuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index b9d3cd6d..f366ff67 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -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;
}