pcm/Normalizer: convert peakPos to std::size_t

This commit is contained in:
Max Kellermann 2023-03-13 13:46:55 +01:00
parent f323fc48d7
commit de155a740c
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ PcmNormalizer::ProcessS16(int16_t *gcc_restrict dest,
constexpr SampleFormat format = SampleFormat::S16;
using Traits = SampleTraits<format>;
int peakVal = 1, peakPos = 0;
int peakVal = 1;
std::size_t peakPos = 0;
for (std::size_t i = 0; i < src.size(); i++) {
int val = src[i];
if (val < 0)