Skip to content

Commit 5e9a819

Browse files
committed
adjust const cast in Object.getHash()
1 parent e588ec4 commit 5e9a819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/object.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ class TypeInfo_Delegate : TypeInfo
14811481

14821482
override size_t getHash(scope const void* p) @trusted const
14831483
{
1484-
return hashOf(*cast(void delegate() const *)p);
1484+
return hashOf(p);
14851485
}
14861486

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

0 commit comments

Comments
 (0)