diff options
author | UbitUmarov | 2019-10-17 19:40:54 +0100 |
---|---|---|
committer | UbitUmarov | 2019-10-17 19:40:54 +0100 |
commit | 6b930a596b18027a05b8b3ebb38140ca8f473a2d (patch) | |
tree | cc2626639a4edbbcbc1aa05b3ffd801860b6e26b /OpenSim | |
parent | tests: windows does not have 1ms time resolution (diff) | |
download | opensim-SC-6b930a596b18027a05b8b3ebb38140ca8f473a2d.zip opensim-SC-6b930a596b18027a05b8b3ebb38140ca8f473a2d.tar.gz opensim-SC-6b930a596b18027a05b8b3ebb38140ca8f473a2d.tar.bz2 opensim-SC-6b930a596b18027a05b8b3ebb38140ca8f473a2d.tar.xz |
Yengine make float.tostring culture invariant
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/MMRScriptTypeCast.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/MMRScriptTypeCast.cs b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptTypeCast.cs index dd0e5e0..943e91a 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/MMRScriptTypeCast.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptTypeCast.cs | |||
@@ -31,6 +31,7 @@ using System; | |||
31 | using System.Collections.Generic; | 31 | using System.Collections.Generic; |
32 | using System.Reflection; | 32 | using System.Reflection; |
33 | using System.Reflection.Emit; | 33 | using System.Reflection.Emit; |
34 | using System.Globalization; | ||
34 | 35 | ||
35 | using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat; | 36 | using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat; |
36 | using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger; | 37 | using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger; |
@@ -810,7 +811,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
810 | } | 811 | } |
811 | public static string FloatToString(double x) | 812 | public static string FloatToString(double x) |
812 | { | 813 | { |
813 | return x.ToString("0.000000"); | 814 | return x.ToString("0.000000",CultureInfo.InvariantCulture); |
814 | } | 815 | } |
815 | public static string IntegerToString(int x) | 816 | public static string IntegerToString(int x) |
816 | { | 817 | { |