From 5dd22a923ed25c385223231be4bb48d4acce9c2b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 24 Nov 2007 19:05:54 +0100 Subject: [PATCH] filterbank.c: avoid useless usigned comparison --- src/filterbank.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } } -- 2.26.2