diff options
author | Tom Rondeau | 2010-12-12 13:39:06 -0500 |
---|---|---|
committer | Tom Rondeau | 2010-12-12 13:52:05 -0500 |
commit | a151e3e1ba2409b44fd2af8ba1f9bfbf3f0dbf25 (patch) | |
tree | 7449db8e4784c8c9eeaa849d638ffa85dbb27c93 /gnuradio-core | |
parent | 7e21f9ad055bb646b22edb462112443bab670b4e (diff) | |
download | gnuradio-a151e3e1ba2409b44fd2af8ba1f9bfbf3f0dbf25.tar.gz gnuradio-a151e3e1ba2409b44fd2af8ba1f9bfbf3f0dbf25.tar.bz2 gnuradio-a151e3e1ba2409b44fd2af8ba1f9bfbf3f0dbf25.zip |
PFB resampler: fix it this way to avoid the signed/unsigned warning.
Diffstat (limited to 'gnuradio-core')
-rw-r--r-- | gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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 320568bc3..834450436 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 @@ -176,7 +176,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)) { // Take the current filter and derivative filter output |