summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/unpacked_to_packed_impl.cc
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2020-01-02 23:19:49 +0000
committerMartin Braun <martin.braun@ettus.com>2020-01-06 15:38:02 -0800
commit41449dba988265d1ee2bafe6b56682d22f5270cf (patch)
tree88fff0f64f98405ee9784f56f66df44cd84077f7 /gr-blocks/lib/unpacked_to_packed_impl.cc
parentfdb80ea8d32497a358b8787f47f1c70bcf18bb21 (diff)
gr-blocks/unpacked_to_packed: Remove needless cast
Diffstat (limited to 'gr-blocks/lib/unpacked_to_packed_impl.cc')
-rw-r--r--gr-blocks/lib/unpacked_to_packed_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/lib/unpacked_to_packed_impl.cc b/gr-blocks/lib/unpacked_to_packed_impl.cc
index d65f6327b9..b3667013c1 100644
--- a/gr-blocks/lib/unpacked_to_packed_impl.cc
+++ b/gr-blocks/lib/unpacked_to_packed_impl.cc
@@ -79,7 +79,7 @@ unsigned int unpacked_to_packed_impl<T>::get_bit_be1(const T* in_vector,
unsigned int bit_addr,
unsigned int bits_per_chunk)
{
- const unsigned int byte_addr = (int)bit_addr / bits_per_chunk;
+ const unsigned int byte_addr = bit_addr / bits_per_chunk;
const T x = in_vector[byte_addr];
const unsigned int residue = bit_addr - byte_addr * bits_per_chunk;
// printf("Bit addr %d byte addr %d residue %d val