diff options
author | Fantoom <serge.vardanyan00@mail.ru> | 2022-09-30 00:05:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 00:05:07 +0300 |
commit | 6f9461380b908750486205855c0bfe6d8d87c19c (patch) | |
tree | 3ec93b3258a170083903ee41d44ac72c37382d4b | |
parent | 42b9ef143d3f02403d19f7c3bbe1af0c59fe2031 (diff) |
InvariantCulture for operand to string conversion in Instruction.ToString() (#870)
* Use InvariantCulture for operand to string conversion in Instruction.ToString()
-rw-r--r-- | Mono.Cecil.Cil/Instruction.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mono.Cecil.Cil/Instruction.cs b/Mono.Cecil.Cil/Instruction.cs index 5fb3604..b381674 100644 --- a/Mono.Cecil.Cil/Instruction.cs +++ b/Mono.Cecil.Cil/Instruction.cs @@ -9,6 +9,7 @@ // using System; +using System.Globalization; using System.Text; namespace Mono.Cecil.Cil { @@ -126,7 +127,7 @@ namespace Mono.Cecil.Cil { instruction.Append ('\"'); break; default: - instruction.Append (operand); + instruction.Append (Convert.ToString(operand, CultureInfo.InvariantCulture)); break; } |