summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/block_executor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/lib/block_executor.cc')
-rw-r--r--gnuradio-runtime/lib/block_executor.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/block_executor.cc b/gnuradio-runtime/lib/block_executor.cc
index 6152ff6765..5f9552415a 100644
--- a/gnuradio-runtime/lib/block_executor.cc
+++ b/gnuradio-runtime/lib/block_executor.cc
@@ -146,7 +146,8 @@ namespace gr {
mpz_class offset;
for(t = rtags.begin(); t != rtags.end(); t++) {
tag_t new_tag = *t;
- offset = new_tag.offset * mp_rrate + one_half;
+ mpz_import(offset.get_mpz_t(), 1, 1, sizeof(new_tag.offset), 0, 0, &new_tag.offset);
+ offset *= mp_rrate + one_half;
new_tag.offset = offset.get_ui();
for(int o = 0; o < d->noutputs(); o++)
out_buf[o]->add_item_tag(new_tag);
@@ -188,7 +189,8 @@ namespace gr {
mpz_class offset;
for(t = rtags.begin(); t != rtags.end(); t++) {
tag_t new_tag = *t;
- offset = new_tag.offset * mp_rrate + one_half;
+ mpz_import(offset.get_mpz_t(), 1, 1, sizeof(new_tag.offset), 0, 0, &new_tag.offset);
+ offset *= mp_rrate + one_half;
new_tag.offset = offset.get_ui();
out_buf->add_item_tag(new_tag);
}