mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-81057: Get the c-analyzer tool working again. (gh-92246)
This commit is contained in:
parent
f03d3dd9af
commit
456cd513e3
4 changed files with 16 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue