From: Tom Rondeau Date: Sun, 12 Dec 2010 18:39:06 +0000 (-0500) Subject: PFB resampler: fix it this way to avoid the signed/unsigned warning. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=9d306b27ceabfd0dd498acc2f2694bca08e4ed1f;hp=f53f2494c65697bf04f7d64bd1865305ff391fcc;p=debian%2Fgnuradio PFB resampler: fix it this way to avoid the signed/unsigned warning. --- diff --git a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc index 3752603a..add106b6 100644 --- a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc +++ b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc @@ -178,7 +178,8 @@ gr_pfb_arb_resampler_ccf::general_work (int noutput_items, j = d_last_filter; // produce output as long as we can and there are enough input samples - while((i < noutput_items) && (count < ninput_items[0]-d_taps_per_filter)) { + int max_input = ninput_items[0]-(int)d_taps_per_filter; + while((i < noutput_items) && (count < max_input)) { // start j by wrapping around mod the number of channels while((j < d_int_rate) && (i < noutput_items)) {