diff options
author | Chris Robinson <[email protected]> | 2019-03-26 13:47:24 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-03-26 13:47:24 -0700 |
commit | 2960d729ef92bd4da37da5fdffe9f24893e5ab67 (patch) | |
tree | d059ba284b6f4615b3c6669b34a46a3bcdd88c87 /utils/makemhr | |
parent | 8b0c9fcf309e60b1f9c71371174b50dfe27508bc (diff) |
Fix a return type for accumulation
Diffstat (limited to 'utils/makemhr')
-rw-r--r-- | utils/makemhr/loadsofa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/makemhr/loadsofa.cpp b/utils/makemhr/loadsofa.cpp index ae8a1c46..d56e6524 100644 --- a/utils/makemhr/loadsofa.cpp +++ b/utils/makemhr/loadsofa.cpp @@ -437,7 +437,7 @@ static double CalcHrirOnset(const uint rate, const uint n, const double *hrir) } double mag{std::accumulate(upsampled.cbegin(), upsampled.cend(), double{0.0}, - [](const double mag, const double sample) -> bool + [](const double mag, const double sample) -> double { return std::max(mag, std::abs(sample)); })}; mag *= 0.15; |