aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-31 18:38:18 -0700
committerChris Robinson <[email protected]>2020-06-07 11:00:19 -0700
commit03eb6a01b984fd811697b7cd082e755e1bf0833d (patch)
treeb053a12e855bad0acec93397e3e28d4d9110a292
parent4acfbfc37a5ee6c21d5a98d625782a717091e515 (diff)
Use a better type for array access
-rw-r--r--alc/hrtf.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp
index a61afcda..f1e1a86b 100644
--- a/alc/hrtf.cpp
+++ b/alc/hrtf.cpp
@@ -365,9 +365,9 @@ void DirectHrtfState::build(const HrtfStore *Hrtf, const al::span<const AngularP
for(size_t i{0u};i < mChannels.size();++i)
{
const double mult{AmbiMatrix[c][i]};
- const ALuint numirs{HRIR_LENGTH - maxu(ldelay, rdelay)};
- ALuint lidx{ldelay}, ridx{rdelay};
- for(ALuint j{0};j < numirs;++j)
+ const size_t numirs{HRIR_LENGTH - maxz(ldelay, rdelay)};
+ size_t lidx{ldelay}, ridx{rdelay};
+ for(size_t j{0};j < numirs;++j)
{
tmpres[i][lidx++][0] += hrir[j][0] * mult;
tmpres[i][ridx++][1] += hrir[j][1] * mult;