aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2019-10-17 19:40:54 +0100
committerUbitUmarov2019-10-17 19:40:54 +0100
commit6b930a596b18027a05b8b3ebb38140ca8f473a2d (patch)
treecc2626639a4edbbcbc1aa05b3ffd801860b6e26b /OpenSim
parenttests: windows does not have 1ms time resolution (diff)
downloadopensim-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.cs3
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;
31using System.Collections.Generic; 31using System.Collections.Generic;
32using System.Reflection; 32using System.Reflection;
33using System.Reflection.Emit; 33using System.Reflection.Emit;
34using System.Globalization;
34 35
35using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat; 36using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat;
36using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger; 37using 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 {