summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/packed_to_unpacked_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/lib/packed_to_unpacked_impl.cc')
-rw-r--r--gr-blocks/lib/packed_to_unpacked_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/lib/packed_to_unpacked_impl.cc b/gr-blocks/lib/packed_to_unpacked_impl.cc
index 54b6031238..ed84f7ecf0 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((1.0 * this->d_bits_per_type) / bits_per_chunk);
+ this->set_relative_rate((uint64_t)BITS_PER_TYPE, (uint64_t)bits_per_chunk);
}
template <class T>