Skip to content

Commit

Permalink
improve struct hash calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
blattm committed Aug 19, 2024
1 parent 12c9352 commit 89810b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decompiler/structures/pseudo/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def __eq__(self, __value):
return isinstance(__value, StructConstant) and super().__eq__(__value)

def __hash__(self):
return hash(tuple(self.value.items()))
return hash(tuple(sorted(self.value.items())))

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

0 comments on commit 89810b6

Please sign in to comment.