aboutsummaryrefslogtreecommitdiffstats
path: root/src/transient_detector.cpp
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2016-07-17 19:50:48 +0300
committerDaniil Cherednik <dan.cherednik@gmail.com>2016-07-17 19:50:48 +0300
commitb4df8a7c2dd12eea27c8cc52bd52a1bb8c00943f (patch)
tree5a129afd2113bfe72e9d597f96da6cb18ba66f27 /src/transient_detector.cpp
parent5154e84468bba497026d41889ac3648bfcc9f2dd (diff)
downloadatracdenc-b4df8a7c2dd12eea27c8cc52bd52a1bb8c00943f.tar.gz
Compilation warnings fixed
Diffstat (limited to 'src/transient_detector.cpp')
-rw-r--r--src/transient_detector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transient_detector.cpp b/src/transient_detector.cpp
index 1c6a2aa..769277e 100644
--- a/src/transient_detector.cpp
+++ b/src/transient_detector.cpp
@@ -21,10 +21,10 @@ void TTransientDetector::HPFilter(const double* in, double* out) {
};
memcpy(HPFBuffer.data() + PrevBufSz, in, BlockSz * sizeof(double));
const double* inBuf = HPFBuffer.data();
- for (int i = 0; i < BlockSz; ++i) {
+ for (size_t i = 0; i < BlockSz; ++i) {
double s = inBuf[i + 10];
double s2 = 0;
- for (int j = 0; j < ((FIRLen - 1) / 2) - 1 ; j += 2) {
+ for (size_t j = 0; j < ((FIRLen - 1) / 2) - 1 ; j += 2) {
s += fircoef[j] * (inBuf[i + j] + inBuf[i + FIRLen - j]);
s2 += fircoef[j + 1] * (inBuf[i + j + 1] + inBuf[i + FIRLen - j - 1]);
}