From 7f217fbf1579bd4a37b633d29c15b929bfe8b9d5 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Wed, 14 Apr 2010 22:20:00 -0400 Subject: [PATCH] Fixes small bug by handling boundaries properly. --- gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.2