diff options
Diffstat (limited to 'constructor.py')
-rw-r--r-- | constructor.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/constructor.py b/constructor.py index 6aa6371..a67ca55 100644 --- a/constructor.py +++ b/constructor.py @@ -1148,7 +1148,12 @@ class RoundTripConstructor(SafeConstructor): anchor=node.anchor, ) elif self.resolver.processing_version != (1, 2) and value_s[0] == '0': - return sign * int(value_s, 8) + return OctalInt( + sign * int(value_s, 8), + width=width, + underscore=underscore, + anchor=node.anchor, + ) elif self.resolver.processing_version != (1, 2) and ':' in value_s: digits = [int(part) for part in value_s.split(':')] digits.reverse() |