From ed5177c4baa3a2f1df831cb7ecd1c772321fc01f Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 11 May 2023 23:31:02 -0700 Subject: [PATCH] fix SelectableMSB0Fraction's constructor --- src/openpower/decoder/fp_working_format.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- 2.30.2