summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/unpack_k_bits.cc
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-06-26 15:42:23 -0400
committerTom Rondeau <tom@trondeau.com>2014-06-26 15:42:23 -0400
commit71a57cc76bd91202e7bd072134ab5f05959f9ed1 (patch)
treefb73f0657d2ce2c0dd68234c14d960a47584f8b5 /gr-blocks/lib/unpack_k_bits.cc
parent18262de17b8764d0f159eb517ff21cd6a7ee06a8 (diff)
build: removed some gcc warnings.
Diffstat (limited to 'gr-blocks/lib/unpack_k_bits.cc')
-rw-r--r--gr-blocks/lib/unpack_k_bits.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/unpack_k_bits.cc b/gr-blocks/lib/unpack_k_bits.cc
index a9ae4dae11..394c15ba84 100644
--- a/gr-blocks/lib/unpack_k_bits.cc
+++ b/gr-blocks/lib/unpack_k_bits.cc
@@ -50,7 +50,7 @@ namespace gr {
int n = 0;
for(int i = 0; i < nbytes; i++) {
unsigned int t = bytes[i];
- for(int j = d_k - 1; j >= 0; j--)
+ for(unsigned int j = d_k - 1; j >= 0; j--)
bits[n++] = (t >> j) & 0x01;
}
}
@@ -61,7 +61,7 @@ namespace gr {
int n = 0;
for(int i = 0; i < nbytes; i++) {
unsigned int t = bytes[i];
- for(int j = 0; j < d_k; j++)
+ for(unsigned int j = 0; j < d_k; j++)
bits[n++] = (t >> j) & 0x01;
}
}