[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 05/09: fixed signed/unsigned comparison
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 05/09: fixed signed/unsigned comparison |
Date: |
Mon, 6 Apr 2015 14:30:33 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 888fb6f4347d0316410290452ed7dcd5ce653e29
Author: Marcus Müller <address@hidden>
Date: Mon Apr 6 12:24:54 2015 +0200
fixed signed/unsigned comparison
int for all the things, since generic_encoder::get*size returns int, not
size_t.
---
gr-fec/lib/async_encoder_impl.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gr-fec/lib/async_encoder_impl.cc b/gr-fec/lib/async_encoder_impl.cc
index 106ad25..4001364 100644
--- a/gr-fec/lib/async_encoder_impl.cc
+++ b/gr-fec/lib/async_encoder_impl.cc
@@ -111,8 +111,8 @@ namespace gr {
const uint8_t* bits_in = pmt::u8vector_elements(bits, o0);
bool variable_framesize = d_encoder->set_frame_size(nbits_in);
- size_t nbits_out = 0;
- size_t nblocks = 1;
+ int nbits_out = 0;
+ int nblocks = 1;
if( variable_framesize ){
nbits_out = d_encoder->get_output_size();
} else {
@@ -135,7 +135,7 @@ namespace gr {
d_encoder->generic_work((void*)d_bits_in, (void*)bits_out);
}
else {
- for(size_t i=0; i<nblocks; i++){
+ for(int i=0; i<nblocks; i++){
d_encoder->generic_work((void*)
&bits_in[i*d_encoder->get_input_size()],
(void*)&bits_out[i*d_encoder->get_output_size()]);
}
}
- [Commit-gnuradio] [gnuradio] branch master updated (93c25bc -> dc6c212), git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 08/09: Merge remote-tracking branch 'mmueller/coverity_gr_blocks_1216153', git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 06/09: Merge remote-tracking branch 'mmueller/coverity_gr_fec_1293327', git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 09/09: Merge remote-tracking branch 'mmueller/gr_fec_async_encoder_signage', git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 05/09: fixed signed/unsigned comparison,
git <=
- [Commit-gnuradio] [gnuradio] 07/09: Merge remote-tracking branch 'mmueller/coverity_gr_dtv_1293311', git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 01/09: Fixing memset(..,0xCCCC,...), git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 03/09: Fix: out-of-bounds memset, git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 04/09: removed unused d_k member, git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 02/09: fixed printf("%d", size_t), git, 2015/04/06