From: Jacob Lifshay Date: Fri, 12 May 2023 06:31:02 +0000 (-0700) Subject: fix SelectableMSB0Fraction's constructor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a6d7f573af34407b1423c0bad7b6bb4a43bc5b7;p=openpower-isa.git fix SelectableMSB0Fraction's constructor --- diff --git a/src/openpower/decoder/fp_working_format.py b/src/openpower/decoder/fp_working_format.py index e3176041..b1fdf56c 100644 --- a/src/openpower/decoder/fp_working_format.py +++ b/src/openpower/decoder/fp_working_format.py @@ -121,7 +121,8 @@ class SelectableMSB0Fraction: def __init__(self, value=None): self.__value = Fraction() - self.eq(value) + if value is not None: + self.eq(value) @property def value(self):