Commit daabef51 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

For AsnMetaTypes that override their ranges

parent e5c08a46
......@@ -262,6 +262,8 @@ def VerifyAndFixAST() -> Dict[str, str]:
if isinstance(originalNode, AsnMetaType):
target = copy.copy(node) # we need to keep the _asnFilename
target._asnFilename = originalNode._asnFilename
if isinstance(node, AsnInt) and Min is not None and Max is not None:
target._range = [Min, Max]
elif isinstance(node, AsnInt) and Min is not None and Max is not None:
target = copy.copy(node) # we need to keep the Min/Max
target._range = [Min, Max]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment