gh-81057: Get the c-analyzer tool working again. (gh-92246)

This commit is contained in:
Eric Snow 2022-05-03 13:18:27 -06:00 committed by GitHub
parent f03d3dd9af
commit 456cd513e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 4 deletions

View file

@ -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)