Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/v1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Feb 10, 2020
2 parents 17760a4 + 6cbd819 commit 895178f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ public IEqualityComparer GetEqualityComparer()
protected virtual IEqualityComparer<T> GetHashCollisionResistantEqualityComparer<T>()
{
IEqualityComparer<T> result = null;
if (typeof(T).IsEnum)
if (typeof(T).GetTypeInfo().IsEnum)
{
Type underlyingType = typeof(T).GetEnumUnderlyingType();
Type underlyingType = typeof(T).GetTypeInfo().GetEnumUnderlyingType();
result =
underlyingType == typeof(sbyte) ? CollisionResistantHasher<T>.Instance :
underlyingType == typeof(byte) ? CollisionResistantHasher<T>.Instance :
Expand Down
1 change: 1 addition & 0 deletions version.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "2.1",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v1\\.x$",
"^refs/heads/v\\d+(?:.\\d+)?$"
]
}

0 comments on commit 895178f

Please sign in to comment.