summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-06-27 09:10:40 -0400
committerTom Rondeau <tom@trondeau.com>2014-06-27 09:10:40 -0400
commit9a7222577bc5425b17b513b94e0de73e847bd9da (patch)
treef88d4ac660a6ad84fee85e7c3a8883e8dd876ff8
parentf985fbaedcc116fb83224c1d962e309bf28f0af3 (diff)
parent15aa1c2f72d442e4f956246493f4547b980e39a7 (diff)
Merge remote-tracking branch 'markcottrell/unpack_k_bits_overflow_fix'
-rw-r--r--gr-blocks/lib/unpack_k_bits.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/lib/unpack_k_bits.cc b/gr-blocks/lib/unpack_k_bits.cc
index 394c15ba84..967d7e17d9 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(unsigned int j = d_k - 1; j >= 0; j--)
+ for(int j = d_k - 1; j >= 0; j--)
bits[n++] = (t >> j) & 0x01;
}
}