summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/modtool_makexml.py
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2014-08-17 14:02:34 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2014-08-17 14:02:34 -0700
commit3852862cb05545b352336877afd6accafe88a6d0 (patch)
treed0ea6b1ddc7eeab1b11d7f4e0a8f0d572cbe0af6 /gr-utils/python/modtool/modtool_makexml.py
parent3897c850322eb51f72ec4e55e2c35c7429c90337 (diff)
parent5e18f0a1c83dc4d039eb976da2ae846bd3ce6a28 (diff)
Merge remote-tracking branch 'martin/modtool/bugfix' into maint
Diffstat (limited to 'gr-utils/python/modtool/modtool_makexml.py')
-rw-r--r--gr-utils/python/modtool/modtool_makexml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-utils/python/modtool/modtool_makexml.py b/gr-utils/python/modtool/modtool_makexml.py
index 28eabe1b81..82dc9d94d4 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]