Change the modified parameter in the Clamp function to be a pointer.

Makes it easier to identify the one being modified.
This commit is contained in:
Lioncash committed 2014-02-05 04:04:35 -05:00
1 parent 6b87a0ef20
commit 249b00c469
10 files changed
+24 -24

No files matched your search

+2 -2
View File
@@ -32,7 +32,7 @@ s16 ADPDecodeSample(s32 bits, s32 q, s32& hist1, s32& hist2)
break;
}
hist = (hist + 0x20) >> 6;
MathUtil::Clamp(hist, -0x200000, 0x1fffff);
MathUtil::Clamp(&hist, -0x200000, 0x1fffff);
s32 cur = (((s16)(bits << 12) >> (q & 0xf)) << 6) + hist;
@@ -40,7 +40,7 @@ s16 ADPDecodeSample(s32 bits, s32 q, s32& hist1, s32& hist2)
hist1 = cur;
cur >>= 6;
MathUtil::Clamp(cur, -0x8000, 0x7fff);
MathUtil::Clamp(&cur, -0x8000, 0x7fff);
return (s16)cur;
}