Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2015-12-03 23:24:22 +0300
committerJan Kotas <jkotas@microsoft.com>2015-12-03 23:24:22 +0300
commitb1e68af0d9b49be79297a45d0f5a170c4ffce775 (patch)
tree5b91a52218ea7ed27e3ed07957853aace0c4a4fd /src/Common
parent7c70c715f85088215bb8aa3f9433f2bb0d3976ef (diff)
parent9b9a794197a0dcc5e49a2e5d8531948578632c1e (diff)
Merge pull request #472 from davidwrighton/array_hash_codes
Fix handling of single dimensional array hash codes
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/src/TypeSystem/Common/ArrayType.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/src/TypeSystem/Common/ArrayType.cs b/src/Common/src/TypeSystem/Common/ArrayType.cs
index 9541676dc..cbdce101d 100644
--- a/src/Common/src/TypeSystem/Common/ArrayType.cs
+++ b/src/Common/src/TypeSystem/Common/ArrayType.cs
@@ -21,7 +21,7 @@ namespace Internal.TypeSystem
public override int GetHashCode()
{
- return Internal.NativeFormat.TypeHashingAlgorithms.ComputeArrayTypeHashCode(this.ElementType.GetHashCode(), _rank);
+ return Internal.NativeFormat.TypeHashingAlgorithms.ComputeArrayTypeHashCode(this.ElementType.GetHashCode(), _rank == -1 ? 1 : _rank);
}
public override DefType BaseType