diff --git a/Cpp2IL.Core/Analysis/Actions/x86/Important/ImmediateToFieldAction.cs b/Cpp2IL.Core/Analysis/Actions/x86/Important/ImmediateToFieldAction.cs index cffa5a12..24c5d8e2 100644 --- a/Cpp2IL.Core/Analysis/Actions/x86/Important/ImmediateToFieldAction.cs +++ b/Cpp2IL.Core/Analysis/Actions/x86/Important/ImmediateToFieldAction.cs @@ -32,6 +32,8 @@ public ImmediateToFieldAction(MethodAnalysis context, Instruction i ConstantValue = BitConverter.ToSingle(BitConverter.GetBytes(rawConstant), 0); else if(destTypeName == "System.Double") ConstantValue = BitConverter.ToDouble(BitConverter.GetBytes(rawConstant), 0); + else if (destTypeName == "System.Boolean") + ConstantValue = BitConverter.ToBoolean(BitConverter.GetBytes(rawConstant), 0); } protected override string? GetValueSummary() => ConstantValue?.ToString();