From: Dmitry Selyutin Date: Sun, 18 Sep 2022 10:40:56 +0000 (+0300) Subject: power_fields: fix __lt__ operator X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9af83b8ae719265b354b7b9b9947075345daac5;p=openpower-isa.git power_fields: fix __lt__ operator --- diff --git a/src/openpower/decoder/power_fields.py b/src/openpower/decoder/power_fields.py index 0f809a55..f39ff386 100644 --- a/src/openpower/decoder/power_fields.py +++ b/src/openpower/decoder/power_fields.py @@ -63,7 +63,7 @@ class Reference: else: raise ValueError(other) - return op(int(lhs), int(rhs)) + return op(lhs, rhs) def __lt__(self, other): return self.__binary_operator(_selectltu, other)