summaryrefslogtreecommitdiffstats
path: root/src/PrbsGenerator.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-11 15:56:55 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-11 15:56:55 +0100
commitfdbea05b16e3c716b5226a1f0d45cc98561500e4 (patch)
treed6f4046b7f10e9b68d279cd3e6f33665582b6177 /src/PrbsGenerator.cpp
parentf0cd709e645a3d2210fce5daf80138696aac84e3 (diff)
downloaddabmod-fdbea05b16e3c716b5226a1f0d45cc98561500e4.tar.gz
dabmod-fdbea05b16e3c716b5226a1f0d45cc98561500e4.tar.bz2
dabmod-fdbea05b16e3c716b5226a1f0d45cc98561500e4.zip
Fix all the warnings shown since previous commit
Diffstat (limited to 'src/PrbsGenerator.cpp')
-rw-r--r--src/PrbsGenerator.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/PrbsGenerator.cpp b/src/PrbsGenerator.cpp
index 69d6af4..b159bd3 100644
--- a/src/PrbsGenerator.cpp
+++ b/src/PrbsGenerator.cpp
@@ -22,9 +22,10 @@
#include "PrbsGenerator.h"
#include "PcDebug.h"
+#include <stdexcept>
+#include <string>
#include <stdio.h>
#include <stdlib.h>
-#include <stdexcept>
PrbsGenerator::PrbsGenerator(size_t framesize, uint32_t polynomial,
@@ -178,8 +179,8 @@ int PrbsGenerator::process(
throw std::runtime_error("PrbsGenerator::process "
"input size is not equal to output size!\n");
}
- for (size_t i = 0; i < dataOut[0]->getLength(); ++i) {
- out[i] ^= in[i];
+ for (size_t j = 0; j < dataOut[0]->getLength(); ++j) {
+ out[j] ^= in[j];
}
}