summaryrefslogtreecommitdiffstats
path: root/src/OfdmGenerator.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-05-16 10:28:51 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-05-16 10:28:51 +0200
commit1c110d11ae3d3181ed37c941fa7e622d332eb520 (patch)
tree2357a2772073daa8c15a33aeb58cfcb7cb48403e /src/OfdmGenerator.cpp
parent1c616a3910dcb34323eb35f95430283d993efcc4 (diff)
downloaddabmod-1c110d11ae3d3181ed37c941fa7e622d332eb520.tar.gz
dabmod-1c110d11ae3d3181ed37c941fa7e622d332eb520.tar.bz2
dabmod-1c110d11ae3d3181ed37c941fa7e622d332eb520.zip
Silence Wmem-access warning in OfdmGenerator
Diffstat (limited to 'src/OfdmGenerator.cpp')
-rw-r--r--src/OfdmGenerator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/OfdmGenerator.cpp b/src/OfdmGenerator.cpp
index 26ad7a4..9a824ec 100644
--- a/src/OfdmGenerator.cpp
+++ b/src/OfdmGenerator.cpp
@@ -221,7 +221,8 @@ int OfdmGenerator::process(Buffer* const dataIn, Buffer* dataOut)
if (myCfr) {
reference.resize(mySpacing);
- memcpy(reference.data(), myFftIn, mySpacing * sizeof(FFT_TYPE));
+ memcpy(reinterpret_cast<fftwf_complex*>(reference.data()),
+ myFftIn, mySpacing * sizeof(FFT_TYPE));
}
fftwf_execute(myFftPlan); // IFFT from myFftIn to myFftOut
@@ -232,7 +233,8 @@ int OfdmGenerator::process(Buffer* const dataIn, Buffer* dataOut)
if (myCfr) {
if (myMERCalcIndex == i) {
before_cfr.resize(mySpacing);
- memcpy(before_cfr.data(), myFftOut, mySpacing * sizeof(FFT_TYPE));
+ memcpy(reinterpret_cast<fftwf_complex*>(reference.data()),
+ myFftOut, mySpacing * sizeof(FFT_TYPE));
}
/* cfr_one_iteration runs the myFftPlan again at the end, and