Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit d0d891f

Browse files
committed
Fix hash function for arrays
1 parent e5e562e commit d0d891f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/util/typeinfo.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ private class TypeInfoArrayGeneric(T) : TypeInfo_Array
377377
return Array!Real.hashOf(*cast(Real[]*)p);
378378
else
379379
{
380-
return hashOf(*cast(const void[]*) p);
380+
return hashOf(*cast(const T[]*) p);
381381
}
382382
}
383383

0 commit comments

Comments
 (0)