ref: 5dd22a923ed25c385223231be4bb48d4acce9c2b
parent: 7873363105371224e0b8d1f5545f55672203f464
author: Paul Brossier <piem@piem.org>
date: Sat Nov 24 14:05:54 EST 2007
filterbank.c: avoid useless usigned comparison
--- a/src/filterbank.c
+++ b/src/filterbank.c
@@ -24,8 +24,6 @@
#include "filterbank.h"
#include "mathutils.h"
-#include "stdio.h"
-
#define VERY_SMALL_NUMBER 2e-42
/** \brief A structure to store a set of n_filters filters of lenghts win_s */
@@ -215,6 +213,6 @@
}
fvec_t * aubio_filterbank_getchannel(aubio_filterbank_t * f, uint_t channel) {
- if ( (channel >= 0) && (channel < f->n_filters) ) { return f->filters[channel]; }
+ if ( (channel < f->n_filters) ) { return f->filters[channel]; }
else { return NULL; }
}