Skip to content

Commit

Permalink
Fixed a bug with RetriveInt32 not able to handle boolean field
Browse files Browse the repository at this point in the history
  • Loading branch information
liiir1985 committed Oct 21, 2024
1 parent 38a4cf6 commit 2416133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ILRuntime/Runtime/Intepreter/ILIntepreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5094,7 +5094,7 @@ public int RetriveInt32(StackObject* esp, AutoList mStack)
StackObject so;
var sop = &so;
if (!((CLRType)t).CopyFieldToStack(idx, obj, this, ref sop, mStack))
res = (int)((CLRType)t).GetFieldValue(idx, obj);
res = Convert.ToInt32(((CLRType)t).GetFieldValue(idx, obj));
else
{
res = so.Value;
Expand Down

0 comments on commit 2416133

Please sign in to comment.