Skip to content

Commit

Permalink
Merge pull request #43 from gompoc/new-analysis
Browse files Browse the repository at this point in the history
Support for System.Boolean Type in ImmediateToFieldAction
  • Loading branch information
SamboyCoding authored Oct 9, 2021
2 parents e32a37d + 7b146b4 commit f7a0ba4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public ImmediateToFieldAction(MethodAnalysis<Instruction> 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();
Expand Down

0 comments on commit f7a0ba4

Please sign in to comment.