Fix a return type for accumulation

This commit is contained in:
Chris Robinson
2019-03-26 13:47:24 -07:00
parent 8b0c9fcf30
commit 2960d729ef
+1 -1
View File
@@ -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;