summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2010-12-12 13:39:06 -0500
committerTom Rondeau <trondeau@vt.edu>2010-12-12 13:40:08 -0500
commit1a3e498933844e995e91e71b932b9e0bf8e2cc3f (patch)
tree8ec2908cf86c7cffe5cee44a63ff82800659a6c3
parent199b77a7b0cc48215a2acf1b317bce81a62e39f7 (diff)
PFB resampler: fix it this way to avoid the signed/unsigned warning.
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc3
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 00c2dab0c4..84b0c578f5 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
@@ -179,7 +179,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)) {