From bd2a5148b6a49fd86790f7b8c762371d593c29f5 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 20 Apr 2022 09:36:56 +0000 Subject: [PATCH] sv_binutils: allow to instantiate integers from symbols --- src/openpower/sv/sv_binutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index a58bb9b1..24dfe2b0 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -195,7 +195,7 @@ class Struct(CType, metaclass=StructMeta): yield f"}}{suffix}" -class Integer(CType, int): +class Integer(CType, str): def c_value(self, prefix="", suffix=""): yield f"{prefix}{self}{suffix}" -- 2.30.2