Skip to content

Commit

Permalink
InvariantCulture for operand to string conversion in Instruction.ToSt…
Browse files Browse the repository at this point in the history
…ring() (#870)

* Use InvariantCulture for operand to string conversion in Instruction.ToString()
  • Loading branch information
Fantoom authored Sep 29, 2022
1 parent 42b9ef1 commit 6f94613
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mono.Cecil.Cil/Instruction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//

using System;
using System.Globalization;
using System.Text;

namespace Mono.Cecil.Cil {
Expand Down Expand Up @@ -126,7 +127,7 @@ public override string ToString ()
instruction.Append ('\"');
break;
default:
instruction.Append (operand);
instruction.Append (Convert.ToString(operand, CultureInfo.InvariantCulture));
break;
}

Expand Down

0 comments on commit 6f94613

Please sign in to comment.