Fixes small bug by handling boundaries properly.
authorTom Rondeau <trondeau@vt.edu>
Thu, 15 Apr 2010 02:20:00 +0000 (22:20 -0400)
committerTom Rondeau <trondeau@vt.edu>
Thu, 15 Apr 2010 02:20:00 +0000 (22:20 -0400)
gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc

index 824a78dd97d82376c604e8f8dd95724c4f003e0a..68f3db620b2855452cadf89b4be524b1e8260006 100644 (file)
@@ -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;