Skip to content

Commit 6f94613

Browse files
authored
InvariantCulture for operand to string conversion in Instruction.ToString() (#870)
* Use InvariantCulture for operand to string conversion in Instruction.ToString()
1 parent 42b9ef1 commit 6f94613

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Mono.Cecil.Cil/Instruction.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//
1010

1111
using System;
12+
using System.Globalization;
1213
using System.Text;
1314

1415
namespace Mono.Cecil.Cil {
@@ -126,7 +127,7 @@ public override string ToString ()
126127
instruction.Append ('\"');
127128
break;
128129
default:
129-
instruction.Append (operand);
130+
instruction.Append (Convert.ToString(operand, CultureInfo.InvariantCulture));
130131
break;
131132
}
132133

0 commit comments

Comments
 (0)