[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/04: digital: removed some warnings in hd
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/04: digital: removed some warnings in hdlc_framer. |
Date: |
Thu, 1 May 2014 23:04:00 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch master
in repository gnuradio.
commit 5bae42017798e138b52d48d4b017868eb5051012
Author: Tom Rondeau <address@hidden>
Date: Thu May 1 18:33:15 2014 -0400
digital: removed some warnings in hdlc_framer.
---
gr-digital/lib/hdlc_framer_pb_impl.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gr-digital/lib/hdlc_framer_pb_impl.cc
b/gr-digital/lib/hdlc_framer_pb_impl.cc
index 27dec52..3722ee5 100644
--- a/gr-digital/lib/hdlc_framer_pb_impl.cc
+++ b/gr-digital/lib/hdlc_framer_pb_impl.cc
@@ -115,7 +115,8 @@ namespace gr {
//this is much, much simpler.
int oidx = 0;
while(d_leftovers.size() > 0) {
- if(noutput_items < (oidx+d_leftovers[0].size())) return oidx;
+ if((size_t)noutput_items < (oidx+d_leftovers[0].size()))
+ return oidx;
memcpy(out+oidx, &d_leftovers[0][0], d_leftovers[0].size());
//start tag
add_item_tag(0,
@@ -160,7 +161,7 @@ namespace gr {
//make sure we have the space. unfortunately, we didn't know
//until now, since the stuffing must be calculated. we'll just
//save it for next time.
- if(noutput_items < (oidx+pkt_bits.size())) {
+ if((size_t)noutput_items < (oidx+pkt_bits.size())) {
d_leftovers.insert(d_leftovers.end(), pkt_bits);
return oidx;
}
@@ -181,4 +182,3 @@ namespace gr {
} /* namespace digital */
} /* namespace gr */
-