summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-blocks/lib/packed_to_unpacked_impl.cc2
-rw-r--r--gr-blocks/lib/unpacked_to_packed_impl.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/packed_to_unpacked_impl.cc b/gr-blocks/lib/packed_to_unpacked_impl.cc
index ed84f7ecf0..8b13371e58 100644
--- a/gr-blocks/lib/packed_to_unpacked_impl.cc
+++ b/gr-blocks/lib/packed_to_unpacked_impl.cc
@@ -52,7 +52,7 @@ namespace gr {
assert(bits_per_chunk <= this->d_bits_per_type);
assert(bits_per_chunk > 0);
- this->set_relative_rate((uint64_t)BITS_PER_TYPE, (uint64_t)bits_per_chunk);
+ this->set_relative_rate((uint64_t)this->d_bits_per_type, (uint64_t)bits_per_chunk);
}
template <class T>
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>