From a5ec3a38f2253d3a450961c66cf215aa998b988c Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 4 May 2022 16:02:57 +0000 Subject: [PATCH] sv_binutils: do not index array entries --- 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 cf2f7e4b..6bd7c2eb 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -121,7 +121,7 @@ class Array(CType, tuple, metaclass=ArrayMeta, type=CType, size=...): def c_value(self, *, prefix="", suffix="", **kwargs): yield f"{prefix}{{" for (index, item) in enumerate(self): - yield from indent(item.c_value(prefix=f"[{index}] = ", suffix=",")) + yield from indent(item.c_value(suffix=",")) yield f"}}{suffix}" -- 2.30.2