From a459f4c3cc9238f38153aeca52dfaeab0f527c98 Mon Sep 17 00:00:00 2001 From: Andrej Rode <mail@andrejro.de> Date: Sat, 1 Sep 2018 03:10:42 +0200 Subject: blocks: unpacked/packed use member variable for bits_per_type --- gr-blocks/lib/unpacked_to_packed_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gr-blocks/lib/unpacked_to_packed_impl.cc') diff --git a/gr-blocks/lib/unpacked_to_packed_impl.cc b/gr-blocks/lib/unpacked_to_packed_impl.cc index 54bcfd3c0b..ff0fac1050 100644 --- a/gr-blocks/lib/unpacked_to_packed_impl.cc +++ b/gr-blocks/lib/unpacked_to_packed_impl.cc @@ -53,7 +53,7 @@ namespace gr { assert(bits_per_chunk <= d_bits_per_type); assert(bits_per_chunk > 0); - this->set_relative_rate((uint64_t)bits_per_chunk, (uint64_t)BITS_PER_TYPE); + this->set_relative_rate((uint64_t)bits_per_chunk, (uint64_t)this->d_bits_per_type); } template <class T> -- cgit v1.2.3