aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/makemhr/loadsofa.cpp2
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;