commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/03: modtool: Fixed a bug in makexml for


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/03: modtool: Fixed a bug in makexml for int-type io signatures
Date: Sun, 17 Aug 2014 22:03:10 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 5e18f0a1c83dc4d039eb976da2ae846bd3ce6a28
Author: Martin Braun <address@hidden>
Date:   Wed Aug 13 14:18:25 2014 +0200

    modtool: Fixed a bug in makexml for int-type io signatures
---
 gr-utils/python/modtool/modtool_makexml.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gr-utils/python/modtool/modtool_makexml.py 
b/gr-utils/python/modtool/modtool_makexml.py
index 28eabe1..82dc9d9 100644
--- a/gr-utils/python/modtool/modtool_makexml.py
+++ b/gr-utils/python/modtool/modtool_makexml.py
@@ -137,7 +137,7 @@ class ModToolMakeXML(ModTool):
                               'std::vector<float>': 'real_vector',
                               'std::vector<gr_complex>': 'complex_vector',
                               }
-            if p_type in ('int',) and default_v[:2].lower() == '0x':
+            if p_type in ('int',) and default_v is not None and len(default_v) 
> 1 and default_v[:2].lower() == '0x':
                 return 'hex'
             try:
                 return translate_dict[p_type]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]