power_fields: fix __lt__ operator
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 18 Sep 2022 10:40:56 +0000 (13:40 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 18 Sep 2022 13:34:22 +0000 (14:34 +0100)
src/openpower/decoder/power_fields.py

index 0f809a55142acf055f7c0ad8a4a32e4f4478444b..f39ff38603b096e145076bc2b42684278aa1d564 100644 (file)
@@ -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)