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=ed5177c4baa3a2f1df831cb7ecd1c772321fc01f;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):