aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/alcomplex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/alcomplex.cpp b/common/alcomplex.cpp
index 2e3e0a60..b6cac4cd 100644
--- a/common/alcomplex.cpp
+++ b/common/alcomplex.cpp
@@ -158,7 +158,7 @@ void complex_hilbert(const al::span<std::complex<double>> buffer)
*bufiter *= inverse_size; ++bufiter;
bufiter = std::transform(bufiter, halfiter, bufiter,
- [inverse_size](auto a){ return a * (2.0 * inverse_size); });
+ [scale=inverse_size*2.0](auto a){ return a * scale; });
*bufiter *= inverse_size; ++bufiter;
std::fill(bufiter, buffer.end(), std::complex<double>{});