Skip to content

Commit

Permalink
Object.getHash() const is in wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed May 27, 2022
1 parent 5e9a819 commit 8c5b1d9
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(p);
return hashOf(*cast(const void delegate() *)p);
}

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

0 comments on commit 8c5b1d9

Please sign in to comment.