From aa9e2ec7abd4f70f73ca9b83dc00c59cd7ba45d1 Mon Sep 17 00:00:00 2001 From: Andrej Rode <mail@andrejro.de> Date: Mon, 25 Mar 2019 11:04:50 +0100 Subject: pmt: remove intrusive_ptr --- gnuradio-runtime/python/gnuradio/gr/tag_utils.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gnuradio-runtime/python/gnuradio') diff --git a/gnuradio-runtime/python/gnuradio/gr/tag_utils.py b/gnuradio-runtime/python/gnuradio/gr/tag_utils.py index d054865c22..cdb3350ed0 100644 --- a/gnuradio-runtime/python/gnuradio/gr/tag_utils.py +++ b/gnuradio-runtime/python/gnuradio/gr/tag_utils.py @@ -58,17 +58,17 @@ def python_to_tag(tag_struct): good = True if('key' in tag_struct): - if(isinstance(tag_struct['key'], pmt.swig_int_ptr)): + if(isinstance(tag_struct['key'], pmt.swig_pmt_ptr)): tag.key = tag_struct['key'] good = True if('value' in tag_struct): - if(isinstance(tag_struct['value'], pmt.swig_int_ptr)): + if(isinstance(tag_struct['value'], pmt.swig_pmt_ptr)): tag.value = tag_struct['value'] good = True if('srcid' in tag_struct): - if(isinstance(tag_struct['srcid'], pmt.swig_int_ptr)): + if(isinstance(tag_struct['srcid'], pmt.swig_pmt_ptr)): tag.srcid = tag_struct['srcid'] good = True @@ -78,15 +78,15 @@ def python_to_tag(tag_struct): tag.offset = tag_struct[0] good = True - if(isinstance(tag_struct[1], pmt.swig_int_ptr)): + if(isinstance(tag_struct[1], pmt.swig_pmt_ptr)): tag.key = tag_struct[1] good = True - if(isinstance(tag_struct[2], pmt.swig_int_ptr)): + if(isinstance(tag_struct[2], pmt.swig_pmt_ptr)): tag.value = tag_struct[2] good = True - if(isinstance(tag_struct[3], pmt.swig_int_ptr)): + if(isinstance(tag_struct[3], pmt.swig_pmt_ptr)): tag.srcid = tag_struct[3] good = True @@ -95,11 +95,11 @@ def python_to_tag(tag_struct): tag.offset = tag_struct[0] good = True - if(isinstance(tag_struct[1], pmt.swig_int_ptr)): + if(isinstance(tag_struct[1], pmt.swig_pmt_ptr)): tag.key = tag_struct[1] good = True - if(isinstance(tag_struct[2], pmt.swig_int_ptr)): + if(isinstance(tag_struct[2], pmt.swig_pmt_ptr)): tag.value = tag_struct[2] good = True -- cgit v1.2.3