Skip to content

Commit

Permalink
fixed Ourpalm#223
Browse files Browse the repository at this point in the history
  • Loading branch information
liiir1985 committed Jun 9, 2020
1 parent bbacfc9 commit b232306
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ILRuntime/Runtime/Intepreter/ILIntepreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ public object Run(ILMethod method, object instance, object[] p)
case ObjectTypes.FieldReference:
case ObjectTypes.ArrayReference:
{
mStack[a->Value] = CheckAndCloneValueType(mStack[a->Value], AppDomain);
if (i > 0 || !method.HasThis)//this instance should not be cloned
mStack[a->Value] = CheckAndCloneValueType(mStack[a->Value], AppDomain);
}
frame.ManagedStackBase--;
break;
Expand Down

0 comments on commit b232306

Please sign in to comment.