From: Paul Brossier Date: Sat, 24 Nov 2007 18:05:54 +0000 (+0100) Subject: filterbank.c: avoid useless usigned comparison X-Git-Tag: bzr2git~441 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5dd22a923ed25c385223231be4bb48d4acce9c2b;p=aubio.git filterbank.c: avoid useless usigned comparison --- diff --git a/src/filterbank.c b/src/filterbank.c index d60890a0..c009e21e 100644 --- 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 @@ void aubio_filterbank_do(aubio_filterbank_t * f, cvec_t * in, fvec_t *out) { } 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; } }