Skip to content

Commit

Permalink
change struct __str__ to output dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
blattm committed Aug 21, 2024
1 parent 346df6f commit e7a0832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decompiler/structures/pseudo/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,9 @@ def __hash__(self):
return hash(tuple(sorted(self.value.items())))

def __str__(self) -> str:
"""Return a trivial string representation of the struct."""
"""Return a string representation of the struct"""

return f"StructConstant()"
return str(self.value)

def __iter__(self) -> Iterator[Expression]:
yield from self.value.values()
Expand Down

0 comments on commit e7a0832

Please sign in to comment.