From d90fd6f81d5bfed12664e5a4ae432b527c4a01c3 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 11 Feb 2014 18:06:52 +0100 Subject: fix invalid initialisation in OfdmGenerator and GuardIntervalInserter --- src/GuardIntervalInserter.cpp | 4 ++-- src/OfdmGenerator.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GuardIntervalInserter.cpp b/src/GuardIntervalInserter.cpp index 28e9fb0..50faf65 100644 --- a/src/GuardIntervalInserter.cpp +++ b/src/GuardIntervalInserter.cpp @@ -35,8 +35,8 @@ GuardIntervalInserter::GuardIntervalInserter(size_t nbSymbols, size_t spacing, size_t nullSize, size_t symSize) : - ModCodec(ModFormat(d_nbSymbols * d_spacing * sizeof(complexf)), - ModFormat((d_nullSize + (d_nbSymbols * d_symSize)) + ModCodec(ModFormat(nbSymbols * spacing * sizeof(complexf)), + ModFormat((nullSize + (nbSymbols * symSize)) * sizeof(complexf))), d_nbSymbols(nbSymbols), d_spacing(spacing), diff --git a/src/OfdmGenerator.cpp b/src/OfdmGenerator.cpp index 0f93977..c7e8ebf 100644 --- a/src/OfdmGenerator.cpp +++ b/src/OfdmGenerator.cpp @@ -34,8 +34,8 @@ OfdmGenerator::OfdmGenerator(size_t nbSymbols, size_t nbCarriers, size_t spacing, bool inverse) : - ModCodec(ModFormat(myNbSymbols * myNbCarriers * sizeof(FFT_TYPE)), - ModFormat(myNbSymbols * mySpacing * sizeof(FFT_TYPE))), + ModCodec(ModFormat(nbSymbols * nbCarriers * sizeof(FFT_TYPE)), + ModFormat(nbSymbols * spacing * sizeof(FFT_TYPE))), myFftPlan(NULL), myFftBuffer(NULL), myNbSymbols(nbSymbols), -- cgit v1.2.3