diff options
author | Chris Robinson <[email protected]> | 2020-05-02 19:24:21 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-05-02 19:24:21 -0700 |
commit | b051f2e33d0146df60332fdea04ed1c6138c9a70 (patch) | |
tree | 5d2a7dedbe696f58a1a16570ceb19610bb54fbe8 /alc/mixer/mixer_neon.cpp | |
parent | 6823fa2de211e57bca9fb73b90ae04b7edc5f484 (diff) |
Use a matching type given the initializer
Diffstat (limited to 'alc/mixer/mixer_neon.cpp')
-rw-r--r-- | alc/mixer/mixer_neon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/mixer/mixer_neon.cpp b/alc/mixer/mixer_neon.cpp index 610ea25c..83388b68 100644 --- a/alc/mixer/mixer_neon.cpp +++ b/alc/mixer/mixer_neon.cpp @@ -258,7 +258,7 @@ void Mix_<NEONTag>(const al::span<const float> InSamples, const al::span<FloatBu step_count = vgetq_lane_f32(step_count4, 0); } /* Mix with applying left over gain steps that aren't aligned multiples of 4. */ - for(uint_fast32_t leftover{min_len&3};leftover;++pos,--leftover) + for(size_t leftover{min_len&3};leftover;++pos,--leftover) { dst[pos] += InSamples[pos] * (gain + step*step_count); step_count += 1.0f; @@ -269,7 +269,7 @@ void Mix_<NEONTag>(const al::span<const float> InSamples, const al::span<FloatBu gain += step*step_count; /* Mix until pos is aligned with 4 or the mix is done. */ - for(uint_fast32_t leftover{aligned_len&3};leftover;++pos,--leftover) + for(size_t leftover{aligned_len&3};leftover;++pos,--leftover) dst[pos] += InSamples[pos] * gain; } *CurrentGains = gain; @@ -289,7 +289,7 @@ void Mix_<NEONTag>(const al::span<const float> InSamples, const al::span<FloatBu pos += 4; } while(--todo); } - for(uint_fast32_t leftover{InSamples.size()&3};leftover;++pos,--leftover) + for(size_t leftover{InSamples.size()&3};leftover;++pos,--leftover) dst[pos] += InSamples[pos] * gain; } } |