summaryrefslogtreecommitdiffstats
path: root/Tools/c-analyzer/c_parser/info.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/c-analyzer/c_parser/info.py')
-rw-r--r--Tools/c-analyzer/c_parser/info.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/c-analyzer/c_parser/info.py b/Tools/c-analyzer/c_parser/info.py
index 697b1f2..bbfbff7 100644
--- a/Tools/c-analyzer/c_parser/info.py
+++ b/Tools/c-analyzer/c_parser/info.py
@@ -1161,7 +1161,9 @@ class Member(namedtuple('Member', 'name vartype size')):
vartype = dict(raw.data)
del vartype['storage']
if 'size' in vartype:
- size = int(vartype.pop('size'))
+ size = vartype.pop('size')
+ if isinstance(size, str) and size.isdigit():
+ size = int(size)
vartype = VarType(**vartype)
return cls(name, vartype, size)