Skip to content

Commit

Permalink
Replaced c# 7 usage to improve compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
liiir1985 committed Aug 25, 2020
1 parent 43db587 commit dcad617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ILRuntime/Runtime/Stack/StackObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ public unsafe static void Initialized(StackObject* esp, IType type)
}
else if (type.IsEnum)
{
if(type is ILType ilType)
ILType ilType = type as ILType;
if (ilType != null)
{
Initialized(esp, ilType.FieldTypes[0]);
}
Expand Down

0 comments on commit dcad617

Please sign in to comment.