diff options
-rw-r--r-- | gr-digital/include/digital/packet_header_default.h | 2 | ||||
-rw-r--r-- | gr-digital/lib/crc32_bb_impl.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gr-digital/include/digital/packet_header_default.h b/gr-digital/include/digital/packet_header_default.h index d69a0f30a6..f97b1a4c81 100644 --- a/gr-digital/include/digital/packet_header_default.h +++ b/gr-digital/include/digital/packet_header_default.h @@ -84,7 +84,7 @@ namespace gr { /*! * \brief Inverse function to header_formatter(). * - * Reads the bit stream in \in and writes a corresponding tag into \p tags. + * Reads the bit stream in and writes a corresponding tag into \p tags. * */ bool header_parser( diff --git a/gr-digital/lib/crc32_bb_impl.cc b/gr-digital/lib/crc32_bb_impl.cc index 608c5758ac..89cc0d1083 100644 --- a/gr-digital/lib/crc32_bb_impl.cc +++ b/gr-digital/lib/crc32_bb_impl.cc @@ -87,9 +87,9 @@ namespace gr { std::vector<gr_tag_t> tags; get_tags_in_range(tags, 0, nitems_read(0), nitems_read(0)+packet_length); - for (unsigned i = 0; i < tags.size(); i++) { + for (size_t i = 0; i < tags.size(); i++) { tags[i].offset -= nitems_read(0); - if (d_check && tags[i].offset > packet_length+packet_size_diff) { + if (d_check && tags[i].offset > (unsigned int)(packet_length+packet_size_diff)) { tags[i].offset = packet_length-5; } add_item_tag(0, nitems_written(0) + tags[i].offset, |