summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/hier_block2_detail.cc
diff options
context:
space:
mode:
authorMarcus Müller <Marcus.Mueller@ettus.com>2015-04-05 22:50:48 +0200
committerMarcus Müller <Marcus.Mueller@ettus.com>2015-04-05 22:50:48 +0200
commite4aff27773af60b40c32447b2335d2cf31b62773 (patch)
tree8990ec9916db9931b7965cf4c74150065cc09ce8 /gnuradio-runtime/lib/hier_block2_detail.cc
parent6afc40e80f05a6cc2dbdebcc037ed40c5f5921f1 (diff)
Fixed up the int/size_t handling in hb2's new max/min_output... methods
alongside with minor beautifications. Fixes all compile warnings related to signed/unsigned comparison.
Diffstat (limited to 'gnuradio-runtime/lib/hier_block2_detail.cc')
-rw-r--r--gnuradio-runtime/lib/hier_block2_detail.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/hier_block2_detail.cc b/gnuradio-runtime/lib/hier_block2_detail.cc
index a735de3fff..948c05d3a1 100644
--- a/gnuradio-runtime/lib/hier_block2_detail.cc
+++ b/gnuradio-runtime/lib/hier_block2_detail.cc
@@ -516,8 +516,9 @@ namespace gr {
// Only run setup_rpc if ControlPort config param is enabled.
bool ctrlport_on = prefs::singleton()->get_bool("ControlPort", "on", false);
-
- size_t min_buff(0), max_buff(0);
+
+ int min_buff = 0;
+ int max_buff = 0;
// Determine how the buffers should be set
bool set_all_min_buff = d_owner->all_min_output_buffer_p();
bool set_all_max_buff = d_owner->all_max_output_buffer_p();