Skip to content

Commit 779bcaf

Browse files
Merge remote-tracking branch 'upstream/v1.x'
2 parents c968026 + 7a343c2 commit 779bcaf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackSecurity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ public IEqualityComparer GetEqualityComparer()
146146
protected virtual IEqualityComparer<T> GetHashCollisionResistantEqualityComparer<T>()
147147
{
148148
IEqualityComparer<T> result = null;
149-
if (typeof(T).IsEnum)
149+
if (typeof(T).GetTypeInfo().IsEnum)
150150
{
151-
Type underlyingType = typeof(T).GetEnumUnderlyingType();
151+
Type underlyingType = typeof(T).GetTypeInfo().GetEnumUnderlyingType();
152152
result =
153153
underlyingType == typeof(sbyte) ? CollisionResistantHasher<T>.Instance :
154154
underlyingType == typeof(byte) ? CollisionResistantHasher<T>.Instance :

version.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "2.1",
44
"publicReleaseRefSpec": [
55
"^refs/heads/master$",
6+
"^refs/heads/v1\\.x$",
67
"^refs/heads/v\\d+(?:.\\d+)?$"
78
]
89
}

0 commit comments

Comments
 (0)