summaryrefslogtreecommitdiff
path: root/gr-blocks
diff options
context:
space:
mode:
authorVolker Schroer <3470424+dl1ksv@users.noreply.github.com>2018-11-24 15:08:25 +0100
committerMarcus Müller <marcus@hostalia.de>2018-11-24 17:29:41 +0100
commitdf4e7a85263eb523395ce6bef0b2e7769bd63465 (patch)
treeac384d7e6799de416b220b80742944a1242475c8 /gr-blocks
parentb00ebcae4cf2047ba9bf8d7d2d16f9053fcd45b7 (diff)
Fix compiler warnings about unsigned / signed comparisons
Diffstat (limited to 'gr-blocks')
-rw-r--r--gr-blocks/lib/integrate_impl.cc4
-rw-r--r--gr-blocks/lib/vector_sink_impl.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/gr-blocks/lib/integrate_impl.cc b/gr-blocks/lib/integrate_impl.cc
index 9fa4035726..90f0ef18ce 100644
--- a/gr-blocks/lib/integrate_impl.cc
+++ b/gr-blocks/lib/integrate_impl.cc
@@ -58,11 +58,11 @@ namespace gr {
T *out = (T *)output_items[0];
for (int i = 0; i < noutput_items; i++) {
- for (int j = 0; j < d_vlen; ++j) {
+ for (unsigned int j = 0; j < d_vlen; ++j) {
out[i*d_vlen + j] = (T)0;
}
for (int j = 0; j < d_decim; j++) {
- for (int k = 0; k < d_vlen; ++k) {
+ for (unsigned int k = 0; k < d_vlen; ++k) {
out[i*d_vlen + k] += in[i*d_decim*d_vlen + j*d_vlen + k];
}
}
diff --git a/gr-blocks/lib/vector_sink_impl.cc b/gr-blocks/lib/vector_sink_impl.cc
index dfa6dbb4a5..b09c8e81b7 100644
--- a/gr-blocks/lib/vector_sink_impl.cc
+++ b/gr-blocks/lib/vector_sink_impl.cc
@@ -94,7 +94,7 @@ namespace gr {
// can't touch this (as long as work() is working, the accessors shall not
// read the data
gr::thread::scoped_lock guard(d_data_mutex);
- for(int i = 0; i < noutput_items * d_vlen; i++)
+ for(unsigned int i = 0; i < noutput_items * d_vlen; i++)
d_data.push_back (iptr[i]);
std::vector<tag_t> tags;
this->get_tags_in_range(tags, 0, this->nitems_read(0), this->nitems_read(0) + noutput_items);