summaryrefslogtreecommitdiffstats
path: root/src/OfdmGenerator.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-10-04 18:57:50 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-10-04 18:57:50 +0200
commite21884ad871f52bcd02fc492084bade3dfab275a (patch)
tree2a97768de2fc19ec680f5fbeeccc88163f2aa397 /src/OfdmGenerator.cpp
parentecf405846aec3ce7455f68379d86d6888b135c50 (diff)
downloaddabmod-e21884ad871f52bcd02fc492084bade3dfab275a.tar.gz
dabmod-e21884ad871f52bcd02fc492084bade3dfab275a.tar.bz2
dabmod-e21884ad871f52bcd02fc492084bade3dfab275a.zip
Actually enable the new warnings for C++
Diffstat (limited to 'src/OfdmGenerator.cpp')
-rw-r--r--src/OfdmGenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OfdmGenerator.cpp b/src/OfdmGenerator.cpp
index 6a5044e..48449c3 100644
--- a/src/OfdmGenerator.cpp
+++ b/src/OfdmGenerator.cpp
@@ -230,8 +230,8 @@ int OfdmGenerator::process(Buffer* const dataIn, Buffer* dataOut)
double sum_iq = 0;
double sum_delta = 0;
for (size_t i = 0; i < mySpacing; i++) {
- sum_iq += std::norm(before_cfr[i]);
- sum_delta += std::norm(symbol[i] - before_cfr[i]);
+ sum_iq += (double)std::norm(before_cfr[i]);
+ sum_delta += (double)std::norm(symbol[i] - before_cfr[i]);
}
const double mer = 10.0 * std::log10(sum_iq / sum_delta);
myMERs.push_back(mer);