From: Tom Rondeau Date: Thu, 15 Apr 2010 02:20:00 +0000 (-0400) Subject: Fixes small bug by handling boundaries properly. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=7f217fbf1579bd4a37b633d29c15b929bfe8b9d5;p=debian%2Fgnuradio Fixes small bug by handling boundaries properly. --- diff --git a/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc index 824a78dd..68f3db62 100644 --- a/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc +++ b/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc @@ -165,9 +165,9 @@ gr_pfb_channelizer_ccf::general_work (int noutput_items, return 0; // history requirements may have changed. } - int n=1, i=-1, j=0, last; + int n=0, i=-1, j=0, last; int toconsume = (int)rintf(noutput_items/d_oversample_rate); - while(n <= toconsume) { + while(n < toconsume) { j = 0; i = (i + d_rate_ratio) % d_numchans; last = i;