summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcottrema <mark.cottrell@taitradio.com>2014-06-27 21:46:47 +1200
committercottrema <mark.cottrell@taitradio.com>2014-06-27 21:46:47 +1200
commit15aa1c2f72d442e4f956246493f4547b980e39a7 (patch)
tree1ed05576ba057100330b8a9028883a788279fae4
parentdf8695346d527692fc5c55ceaed299f3974fd84c (diff)
fixed an overflow issue in unpack_k_bits::unpack
-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;
}
}