Skip to content

Commit

Permalink
adjust const cast in Object.getHash()
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed May 26, 2022
1 parent e588ec4 commit 5e9a819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object.d
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@ class TypeInfo_Delegate : TypeInfo

override size_t getHash(scope const void* p) @trusted const
{
return hashOf(*cast(void delegate() const *)p);
return hashOf(p);
}

override bool equals(in void* p1, in void* p2) const
Expand Down

0 comments on commit 5e9a819

Please sign in to comment.